DBZ-8075 Speed-up PostgresShutdownIT test

This commit is contained in:
Vojtech Juranek 2024-07-18 12:44:47 +02:00 committed by Chris Cranford
parent 6016bb8f4a
commit 5bdf068fd8

View File

@ -27,6 +27,7 @@
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.EmbeddedEngine;
import io.debezium.embedded.EmbeddedEngineConfig;
import io.debezium.heartbeat.DatabaseHeartbeatImpl;
import io.debezium.heartbeat.Heartbeat;
import io.debezium.jdbc.JdbcConfiguration;
@ -106,7 +107,8 @@ public void shouldStopOnPostgresFastShutdown() throws Exception {
.with(PostgresConnectorConfig.DROP_SLOT_ON_STOP, false)
.with(PostgresConnectorConfig.SCHEMA_INCLUDE_LIST, "s1")
.with(Heartbeat.HEARTBEAT_INTERVAL, 500)
.with(DatabaseHeartbeatImpl.HEARTBEAT_ACTION_QUERY, "UPDATE s1.heartbeat SET ts=NOW();");
.with(DatabaseHeartbeatImpl.HEARTBEAT_ACTION_QUERY, "UPDATE s1.heartbeat SET ts=NOW();")
.with(EmbeddedEngineConfig.WAIT_FOR_COMPLETION_BEFORE_INTERRUPT_MS, 5_000);
// Testing.Print.enable();
PostgresConnection postgresConnection = TestHelper.create();