Skip to content

Commit

Permalink
Update to core context local API change
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Dec 18, 2024
1 parent 3534927 commit 9bd56bf
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 14,7 @@
import io.vertx.core.Future;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.vertx.core.internal.ContextInternal;
import io.vertx.ext.unit.Async;
import io.vertx.ext.unit.TestContext;
import io.vertx.sqlclient.*;
Expand Down Expand Up @@ -385,7 386,7 @@ public void testWithPropagatableConnectionTransactionCommit(TestContext ctx) {
.execute()
.onComplete(ctx.asyncAssertSuccess(rows -> {
ctx.assertEquals(3, rows.size());
ctx.assertNull(Vertx.currentContext().getLocal("propagatable_connection"));
ctx.assertNull(((ContextInternal)Vertx.currentContext()).getLocal("propagatable_connection"));
async.complete();
}))));
});
Expand All @@ -406,7 407,7 @@ public void testWithPropagatableConnectionTransactionRollback(TestContext ctx) {
.execute()
.onComplete(ctx.asyncAssertSuccess(rows -> {
ctx.assertEquals(0, rows.size());
ctx.assertNull(Vertx.currentContext().getLocal("propagatable_connection"));
ctx.assertNull(((ContextInternal)Vertx.currentContext()).getLocal("propagatable_connection"));
async.complete();
}))));
});
Expand Down

0 comments on commit 9bd56bf

Please sign in to comment.