Beispiel #1
0
 public void MultiNodeSpecAfterAll()
 {
     // wait for all nodes to remove themselves before we shut the conductor down
     if (SelfIndex == 0)
     {
         TestConductor.RemoveNode(_myself);
         Within(TestConductor.Settings.BarrierTimeout, () =>
                AwaitCondition(() => TestConductor.GetNodes().Result.All(n => n.Equals(_myself))));
     }
     Shutdown(Sys);
     AfterTermination();
 }
Beispiel #2
0
 public void MultiNodeSpecAfterAll()
 {
     // wait for all nodes to remove themselves before we shut the conductor down
     if (SelfIndex == 0)
     {
         TestConductor.RemoveNode(_myself);
         //TODO: Async stuff here
         AwaitCondition(() => TestConductor.GetNodes().Result.Any(n => !n.Equals(_myself))
                        , TestConductor.Settings.BarrierTimeout);
     }
     Shutdown(Sys);
     AfterTermination();
 }