diff --git a/test/Microsoft.SqlTools.ServiceLayer.Test/Workspace/WorkspaceTests.cs b/test/Microsoft.SqlTools.ServiceLayer.Test/Workspace/WorkspaceTests.cs index 3c11ba58..ad5c3b3d 100644 --- a/test/Microsoft.SqlTools.ServiceLayer.Test/Workspace/WorkspaceTests.cs +++ b/test/Microsoft.SqlTools.ServiceLayer.Test/Workspace/WorkspaceTests.cs @@ -82,7 +82,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.Workspace // Then: // ... There should be a file not found exception thrown // TODO: This logic should be changed to not create the ScriptFile - await Assert.ThrowsAsync( + await Assert.ThrowsAnyAsync( () => workspaceService.HandleDidCloseTextDocumentNotification(requestParams, eventContext)); // ... There should still be no open files