Skip to content

Commit

Permalink
Fix incorrect test
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Oct 4, 2024
1 parent 00fa556 commit fc56a32
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/test/java/io/vertx/core/ContextTaskTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,17 +178,14 @@ private void testOpFromAnotherEventLoop(BiConsumer<ContextInternal, Handler<Void
waitFor(2);
ContextInternal ctx = contextSupplier.get();
createEventLoopContext().nettyEventLoop().execute(() -> {
AtomicBoolean flag = new AtomicBoolean(true);
op.accept(ctx, v2 -> {
if (isSchedule) {
assertNull(Vertx.currentContext());
} else {
assertSame(ctx, Vertx.currentContext());
}
assertFalse(flag.get());
complete();
});
flag.set(false);
complete();
});
await();
Expand Down

0 comments on commit fc56a32

Please sign in to comment.