Skip to content

Instantly share code, notes, and snippets.

@jponge
Created January 18, 2018 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jponge/1f19d5d4d810867a87faaad4a436b0ac to your computer and use it in GitHub Desktop.
Save jponge/1f19d5d4d810867a87faaad4a436b0ac to your computer and use it in GitHub Desktop.
@Test
@DisplayName("⏱ Count 3 timer ticks, with a checkpoint")
void countThreeTicksWithCheckpoints(Vertx vertx, VertxTestContext testContext) {
Checkpoint checkpoint = testContext.checkpoint(3);
vertx.setPeriodic(100, id -> checkpoint.flag());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment