mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
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:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user