瀏覽代碼

unregister_should_be_blocking: Increased the timeout to work on AppVeyor

Kevin Lovato 11 年之前
父節點
當前提交
7217907a20
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Abc.Zebus.Tests/Directory/PeerDirectoryClientTests.cs

+ 2 - 2
src/Abc.Zebus.Tests/Directory/PeerDirectoryClientTests.cs

@@ -299,14 +299,14 @@ namespace Abc.Zebus.Tests.Directory
 
             var unregistration = Task.Factory.StartNew(() => _directory.Unregister(_bus));
 
-            var started = startUnregisterSignal.WaitOne(500);
+            var started = startUnregisterSignal.WaitOne(2.Seconds());
             started.ShouldBeTrue();
 
             unregistration.IsCompleted.ShouldBeFalse();
 
             stopUnregisterSignal.Set();
 
-            unregistration.Wait(500);
+            unregistration.Wait(300);
             unregistration.IsCompleted.ShouldBeTrue();
         }