Browse Source

unregister_should_be_blocking: Increased the timeout to work on AppVeyor

Kevin Lovato 11 năm trước cách đây
mục cha
commit
7217907a20
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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();
         }