Skip to content

Commit

Permalink
Slightly nicer use of Awaitility (ReactiveX#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanhaleby authored and RobWin committed Feb 11, 2019
1 parent ed61752 commit c98645e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -294,11 +294,11 @@ public void waitForPermissionWithInterruption() throws Exception {

await()
.atMost(5, TimeUnit.SECONDS)
.until(wasInterrupted::get, equalTo(false));
.untilFalse(wasInterrupted);
thread.interrupt();
await()
.atMost(5, TimeUnit.SECONDS)
.until(wasInterrupted::get, equalTo(true));
.untilTrue(wasInterrupted);
}

@Test
Expand Down

0 comments on commit c98645e

Please sign in to comment.