Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.CombinedChannelDuplexHandler;
import io.vertx.core.Completable;
import io.vertx.sqlclient.ClosedConnectionException;
import io.vertx.sqlclient.internal.command.CommandBase;
import io.vertx.sqlclient.internal.command.CommandResponse;
Expand Down Expand Up @@ -82,9 +83,10 @@ private void fail(Throwable cause) {
}

private void fail(PgCommandCodec<?, ?> codec, Throwable cause) {
CommandResponse<Object> failure = CommandResponse.failure(cause);
failure.cmd = (CommandBase) codec.cmd;
chctx.fireChannelRead(failure);
Completable<?> handler = codec.cmd.handler;
if (handler != null) {
handler.complete(null, cause);
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ private void testCloseConnection(TestContext ctx, Runnable test) {
}

@Test
@Ignore("Ignored due to https://github.com/eclipse-vertx/vertx-sql-client/issues/1506")
public void testTransactionInProgressShouldFail(TestContext ctx) {
ProxyServer proxy = ProxyServer.create(vertx, options.getPort(), options.getHost());
proxy.proxyHandler(conn -> {
Expand Down