fixed SystemViewSelfTest#testCountDownLatch
@@ -1089,7 +1089,7 @@ public class SystemViewSelfTest extends GridCommonAbstractTest {
s2.close();
- assertTrue(s.removed());
+ assertTrue(waitForCondition(s::removed, getTestTimeout()));
}
}
@@ -1107,7 +1107,7 @@ public class SystemViewSelfTest extends GridCommonAbstractTest {
s1.close();
- assertTrue(s.removed());
+ assertTrue(waitForCondition(s::removed, getTestTimeout()));
assertEquals(0, seqs0.size());
assertEquals(0, seqs1.size());
@@ -1149,7 +1149,7 @@ public class SystemViewSelfTest extends GridCommonAbstractTest {
l2.close();
- assertTrue(l.removed());
+ assertTrue(waitForCondition(l::removed, getTestTimeout()));
}
}
@@ -1166,7 +1166,7 @@ public class SystemViewSelfTest extends GridCommonAbstractTest {
l1.close();
- assertTrue(l.removed());
+ assertTrue(waitForCondition(l::removed, getTestTimeout()));
assertEquals(0, longs0.size());
assertEquals(0, longs1.size());
@@ -1208,7 +1208,7 @@ public class SystemViewSelfTest extends GridCommonAbstractTest {
l2.close();
- assertTrue(r.removed());
+ assertTrue(waitForCondition(r::removed, getTestTimeout()));
}
}
@@ -1225,7 +1225,7 @@ public class SystemViewSelfTest extends GridCommonAbstractTest {
l1.close();
- assertTrue(l.removed());
+ assertTrue(waitForCondition(l::removed, getTestTimeout()));
assertEquals(0, refs0.size());
assertEquals(0, refs1.size());
@@ -1270,7 +1270,7 @@ public class SystemViewSelfTest extends GridCommonAbstractTest {
s2.close();
- assertTrue(s.removed());
+ assertTrue(waitForCondition(s::removed, getTestTimeout()));
}
}
@@ -1333,7 +1333,7 @@ public class SystemViewSelfTest extends GridCommonAbstractTest {
l2.countDown();
l2.close();
- assertTrue(l.removed());
+ assertTrue(waitForCondition(l::removed, getTestTimeout()));
}
assertEquals(grpName, l.groupName());
@@ -1357,7 +1357,7 @@ public class SystemViewSelfTest extends GridCommonAbstractTest {
l3.countDown();
l3.close();
- assertTrue(l.removed());
+ assertTrue(waitForCondition(l::removed, getTestTimeout()));
assertEquals(0, latches0.size());
assertEquals(0, latches1.size());
@@ -1419,7 +1419,7 @@ public class SystemViewSelfTest extends GridCommonAbstractTest {
s2.close();
- assertTrue(s.removed());
+ assertTrue(waitForCondition(s::removed, getTestTimeout()));
}
assertEquals(grpName, s.groupName());
@@ -1444,7 +1444,7 @@ public class SystemViewSelfTest extends GridCommonAbstractTest {
l3.close();
- assertTrue(s.removed());
+ assertTrue(waitForCondition(s::removed, getTestTimeout()));
assertEquals(0, semaphores0.size());
assertEquals(0, semaphores1.size());
@@ -1505,7 +1505,7 @@ public class SystemViewSelfTest extends GridCommonAbstractTest {
l2.close();
- assertTrue(l.removed());
+ assertTrue(waitForCondition(l::removed, getTestTimeout()));
}
assertEquals(grpName, l.groupName());
@@ -1532,7 +1532,7 @@ public class SystemViewSelfTest extends GridCommonAbstractTest {
l3.close();
- assertTrue(s.removed());
+ assertTrue(waitForCondition(s::removed, getTestTimeout()));
assertEquals(0, locks0.size());
assertEquals(0, locks1.size());
