Skip to content

Commit

Permalink
Remove calls to .pollInSameThread() as Awaitility has been configured…
Browse files Browse the repository at this point in the history
… to do so by default
  • Loading branch information
jponge committed Dec 6, 2021
1 parent a1fbbe5 commit c30df63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ public void testOnCompleteOnErrorRace() {
Collections.shuffle(runnables);
runnables.forEach(r -> new Thread(r).start());

Awaitility.await().pollInSameThread().until(() -> subscriber.hasCompleted() || subscriber.getFailure() != null);
Awaitility.await().until(() -> subscriber.hasCompleted() || subscriber.getFailure() != null);
if (subscriber.hasCompleted()) {
subscriber.assertCompleted().assertHasNotReceivedAnyItem();
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void testSubscription() {
reference.set(s);
}));

await().pollInSameThread().until(() -> reference.get() != null);
await().until(() -> reference.get() != null);
assertThat(reference).hasValue("hey");
}

Expand Down

0 comments on commit c30df63

Please sign in to comment.