Remove task.wait from test to avoid break on build machine. (#67)

This is to fix test breaks so I'll merge now.  Please let me know if there are comments on this commit.
This commit is contained in:
Karl Burtram
2016-09-26 10:29:49 -07:00
committed by GitHub
parent 806220c4b5
commit 5a198e3f45

View File

@@ -187,7 +187,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.LanguageServices
/// Test the service initialization code path and verify nothing throws /// Test the service initialization code path and verify nothing throws
/// </summary> /// </summary>
[Fact] [Fact]
public void UpdateLanguageServiceOnConnection() public async void UpdateLanguageServiceOnConnection()
{ {
string ownerUri = "file://my/sample/file.sql"; string ownerUri = "file://my/sample/file.sql";
var connectionService = TestObjects.GetTestConnectionService(); var connectionService = TestObjects.GetTestConnectionService();
@@ -202,8 +202,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.LanguageServices
ConnectionInfo connInfo = null; ConnectionInfo connInfo = null;
connectionService.TryFindConnection(ownerUri, out connInfo); connectionService.TryFindConnection(ownerUri, out connInfo);
var task = LanguageService.Instance.UpdateLanguageServiceOnConnection(connInfo); await LanguageService.Instance.UpdateLanguageServiceOnConnection(connInfo);
task.Wait();
} }
/// <summary> /// <summary>