Skip to content

Commit

Permalink
adding await in CancelOnDisconnectBinaryEntrypointSystemTest for time…
Browse files Browse the repository at this point in the history
…outHandler.invokeCount set
  • Loading branch information
lucianoviana committed Oct 15, 2024
1 parent 3009f77 commit 7a819c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private void assertTriggersCancelOnDisconnect(final long logoutTimeInNs)
assertEquals(onlySession.key(), result.context.key());
final long timeoutTakenInNs = result.timeInNs - logoutTimeInNs;
assertThat(timeoutTakenInNs, greaterThanOrEqualTo(codTimeoutInNs));
assertEquals(1, timeoutHandler.invokeCount());
testSystem.await("timeoutHandler.invokeCount() is not 1", () -> 1 == timeoutHandler.invokeCount());
}

class FakeTimeoutHandler implements FixPCancelOnDisconnectTimeoutHandler
Expand Down

0 comments on commit 7a819c7

Please sign in to comment.