Skip to content

Commit

Permalink
GEODE-6489: fix a flaky test (apache#7777)
Browse files Browse the repository at this point in the history
* fix GemFireDeadlockDetectorDUnitTest.testDistributedDeadlockWithDLock
  • Loading branch information
jinmeiliao authored Jun 9, 2022
1 parent be37708 commit dcee9ba
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,9 @@ public void testDistributedDeadlockWithDLock() throws Throwable {
.untilAsserted(() -> assertTrue(getBlackboard().isGateSignaled("two")));

GemFireDeadlockDetector detect = new GemFireDeadlockDetector();
LinkedList<Dependency> deadlock = detect.find().findCycle();

assertTrue(deadlock != null);
await().until(() -> (detect.find().findCycle() != null));

LinkedList<Dependency> deadlock = detect.find().findCycle();
System.out.println("Deadlock=" + DeadlockDetector.prettyFormat(deadlock));

assertEquals(4, deadlock.size());
Expand Down

0 comments on commit dcee9ba

Please sign in to comment.