Added timeout to check Service's execution 5804/head
authorVyacheslav Daradur <daradurvs@gmail.com>
Fri, 11 Jan 2019 08:46:45 +0000 (11:46 +0300)
committerVyacheslav Daradur <daradurvs@gmail.com>
Fri, 11 Jan 2019 08:46:45 +0000 (11:46 +0300)
modules/platforms/dotnet/Apache.Ignite.Core.Tests/Services/ServicesTest.cs

index 0e30ae0..16a1e60 100644 (file)
@@ -292,7 +292,7 @@ namespace Apache.Ignite.Core.Tests.Services
             Assert.AreEqual(prx.ToString(), svc.ToString());
             Assert.AreEqual(17, prx.TestProperty);
             Assert.IsTrue(prx.Initialized);
-            Assert.IsTrue(prx.Executed);
+            Assert.IsTrue(TestUtils.WaitForCondition(() => prx.Executed, 5000));
             Assert.IsFalse(prx.Cancelled);
             Assert.AreEqual(SvcName, prx.LastCallContextName);
 
@@ -337,7 +337,7 @@ namespace Apache.Ignite.Core.Tests.Services
             // Property getter.
             Assert.AreEqual(37, prx.TestProperty);
             Assert.IsTrue(prx.Initialized);
-            Assert.IsTrue(prx.Executed);
+            Assert.IsTrue(TestUtils.WaitForCondition(() => prx.Executed, 5000));
             Assert.IsFalse(prx.Cancelled);
             Assert.AreEqual(SvcName, prx.LastCallContextName);