提交 5b9c30bf 编写于 作者: H Heejae Chang

fix unit test failure due to pending workspace events

上级 48e5e39d
......@@ -23,7 +23,7 @@ public class WorkCoordinatorTests
private const string SolutionCrawler = nameof(SolutionCrawler);
[Fact]
public void RegisterService()
public async Task RegisterService()
{
using (var workspace = new WorkCoordinatorWorkspace(SolutionCrawler))
{
......@@ -34,6 +34,11 @@ public void RegisterService()
// register and unregister workspace to the service
registrationService.Register(workspace);
registrationService.Unregister(workspace);
// make sure we wait for all waiter. the test wrongly assumed there won't be
// any pending async event which is implementation detail when creating workspace
// and changing options.
await WaitWaiterAsync(workspace.ExportProvider);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册