From 550180be035b7edbb23fe43779b4254a1b7508c4 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Fri, 28 Jun 2019 13:15:27 -0700 Subject: [PATCH] Fix --- .../Mocks/InProcRemoteHostClientFactory.cs | 2 +- .../Test.Next/Services/ServiceHubServicesTests.cs | 14 +++++++------- .../Remote/RemoteHostClientFactory.cs | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/VisualStudio/Core/Test.Next/Mocks/InProcRemoteHostClientFactory.cs b/src/VisualStudio/Core/Test.Next/Mocks/InProcRemoteHostClientFactory.cs index 33d77e3c54a..87a182c2194 100644 --- a/src/VisualStudio/Core/Test.Next/Mocks/InProcRemoteHostClientFactory.cs +++ b/src/VisualStudio/Core/Test.Next/Mocks/InProcRemoteHostClientFactory.cs @@ -20,7 +20,7 @@ public InProcRemoteHostClientFactory() public Task CreateAsync(Workspace workspace, CancellationToken cancellationToken) { - return InProcRemoteHostClient.CreateAsync(workspace, runCacheCleanup: false, cancellationToken: cancellationToken); + return InProcRemoteHostClient.CreateAsync(workspace, runCacheCleanup: false); } } } diff --git a/src/VisualStudio/Core/Test.Next/Services/ServiceHubServicesTests.cs b/src/VisualStudio/Core/Test.Next/Services/ServiceHubServicesTests.cs index 658e0500346..f970574c7d3 100644 --- a/src/VisualStudio/Core/Test.Next/Services/ServiceHubServicesTests.cs +++ b/src/VisualStudio/Core/Test.Next/Services/ServiceHubServicesTests.cs @@ -64,7 +64,7 @@ public async Task TestRemoteHostSynchronize() using (var workspace = TestWorkspace.CreateCSharp(code)) { - var client = (InProcRemoteHostClient)(await InProcRemoteHostClient.CreateAsync(workspace, runCacheCleanup: false, cancellationToken: CancellationToken.None)); + var client = (InProcRemoteHostClient)(await InProcRemoteHostClient.CreateAsync(workspace, runCacheCleanup: false)); var solution = workspace.CurrentSolution; @@ -84,7 +84,7 @@ public async Task TestRemoteHostTextSynchronize() using (var workspace = TestWorkspace.CreateCSharp(code)) { - var client = (InProcRemoteHostClient)(await InProcRemoteHostClient.CreateAsync(workspace, runCacheCleanup: false, cancellationToken: CancellationToken.None)); + var client = (InProcRemoteHostClient)(await InProcRemoteHostClient.CreateAsync(workspace, runCacheCleanup: false)); var solution = workspace.CurrentSolution; @@ -121,7 +121,7 @@ public async Task TestTodoComments() using (var workspace = TestWorkspace.CreateCSharp(code)) { - var client = (InProcRemoteHostClient)(await InProcRemoteHostClient.CreateAsync(workspace, runCacheCleanup: false, cancellationToken: CancellationToken.None)); + var client = (InProcRemoteHostClient)(await InProcRemoteHostClient.CreateAsync(workspace, runCacheCleanup: false)); var solution = workspace.CurrentSolution; @@ -143,7 +143,7 @@ class Test { }"; using (var workspace = TestWorkspace.CreateCSharp(code)) { - var client = (InProcRemoteHostClient)(await InProcRemoteHostClient.CreateAsync(workspace, runCacheCleanup: false, cancellationToken: CancellationToken.None)); + var client = (InProcRemoteHostClient)(await InProcRemoteHostClient.CreateAsync(workspace, runCacheCleanup: false)); var solution = workspace.CurrentSolution; @@ -164,7 +164,7 @@ public async Task TestRemoteHostSynchronizeGlobalAssets() using (var workspace = TestWorkspace.CreateCSharp(code)) { - var client = (InProcRemoteHostClient)(await InProcRemoteHostClient.CreateAsync(workspace, runCacheCleanup: false, cancellationToken: CancellationToken.None)); + var client = (InProcRemoteHostClient)(await InProcRemoteHostClient.CreateAsync(workspace, runCacheCleanup: false)); await client.TryRunRemoteAsync( WellKnownRemoteHostServices.RemoteHostService, @@ -183,7 +183,7 @@ public async Task TestUnknownProject() var workspace = new AdhocWorkspace(TestHostServices.CreateHostServices()); var solution = workspace.CurrentSolution.AddProject("unknown", "unknown", NoCompilationConstants.LanguageName).Solution; - var client = (InProcRemoteHostClient)(await InProcRemoteHostClient.CreateAsync(workspace, runCacheCleanup: false, cancellationToken: CancellationToken.None)); + var client = (InProcRemoteHostClient)(await InProcRemoteHostClient.CreateAsync(workspace, runCacheCleanup: false)); await UpdatePrimaryWorkspace(client, solution); await VerifyAssetStorageAsync(client, solution); @@ -198,7 +198,7 @@ public async Task TestRemoteHostSynchronizeIncrementalUpdate() { using (var workspace = TestWorkspace.CreateCSharp(Array.Empty(), metadataReferences: null)) { - var client = (InProcRemoteHostClient)(await InProcRemoteHostClient.CreateAsync(workspace, runCacheCleanup: false, cancellationToken: CancellationToken.None)); + var client = (InProcRemoteHostClient)(await InProcRemoteHostClient.CreateAsync(workspace, runCacheCleanup: false)); var solution = Populate(workspace.CurrentSolution.RemoveProject(workspace.CurrentSolution.ProjectIds.First())); diff --git a/src/VisualStudio/RemoteHostClientMock/Remote/RemoteHostClientFactory.cs b/src/VisualStudio/RemoteHostClientMock/Remote/RemoteHostClientFactory.cs index 087e1b719b3..b81f5de6f17 100644 --- a/src/VisualStudio/RemoteHostClientMock/Remote/RemoteHostClientFactory.cs +++ b/src/VisualStudio/RemoteHostClientMock/Remote/RemoteHostClientFactory.cs @@ -24,7 +24,7 @@ public Task CreateAsync(Workspace workspace, CancellationToken // this is the point where we can create different kind of remote host client in future (cloud or etc) if (workspace.Options.GetOption(RemoteHostClientFactoryOptions.RemoteHost_InProc)) { - return InProcRemoteHostClient.CreateAsync(workspace, runCacheCleanup: true, cancellationToken: cancellationToken); + return InProcRemoteHostClient.CreateAsync(workspace, runCacheCleanup: true); } return ServiceHubRemoteHostClient.CreateAsync(workspace, cancellationToken); -- GitLab