Skip to content

Commit

Permalink
CASSANDRA-15672 Do not check that session is done until the end
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrrr committed Apr 1, 2020
1 parent b3c7619 commit 208a23d
Showing 1 changed file with 0 additions and 3 deletions.
Expand Up @@ -117,19 +117,16 @@ public void testMockedMessagingHappyPath() throws InterruptedException, Executio

// execute repair and start prepare phase
ListenableFuture<Boolean> sessionResult = coordinator.execute(sessionSupplier, hasFailures);
Assert.assertFalse(sessionResult.isDone());
Assert.assertFalse(hasFailures.get());
// prepare completed
spyPrepare.interceptMessageOut(3).get(1, TimeUnit.SECONDS);
Assert.assertFalse(sessionResult.isDone());
Assert.assertFalse(hasFailures.get());

// set result from local repair session
repairFuture.set(Lists.newArrayList(createResult(coordinator), createResult(coordinator), createResult(coordinator)));

// finalize phase
spyFinalize.interceptMessageOut(3).get(1, TimeUnit.SECONDS);
Assert.assertFalse(sessionResult.isDone());
Assert.assertFalse(hasFailures.get());

// commit phase
Expand Down

0 comments on commit 208a23d

Please sign in to comment.