diff --git a/airbyte-integrations/connectors/source-postgres/src/test/java/io/airbyte/integrations/source/postgres/CdcPostgresSourceTest.java b/airbyte-integrations/connectors/source-postgres/src/test/java/io/airbyte/integrations/source/postgres/CdcPostgresSourceTest.java index ca7dc195e7d6..716413f04de2 100644 --- a/airbyte-integrations/connectors/source-postgres/src/test/java/io/airbyte/integrations/source/postgres/CdcPostgresSourceTest.java +++ b/airbyte-integrations/connectors/source-postgres/src/test/java/io/airbyte/integrations/source/postgres/CdcPostgresSourceTest.java @@ -224,25 +224,6 @@ void testCheckWithoutReplicationSlot() throws Exception { assertEquals(status.getStatus(), AirbyteConnectionStatus.Status.FAILED); } - @Test - void testReadWithoutPublication() throws SQLException { - database.query(ctx -> ctx.execute("DROP PUBLICATION " + PUBLICATION + ";")); - - assertThrows(Exception.class, () -> { - source.read(config, CONFIGURED_CATALOG, null); - }); - } - - @Test - void testReadWithoutReplicationSlot() throws SQLException { - final String fullReplicationSlot = SLOT_NAME_BASE + "_" + dbName; - database.query(ctx -> ctx.execute("SELECT pg_drop_replication_slot('" + fullReplicationSlot + "');")); - - assertThrows(Exception.class, () -> { - source.read(config, CONFIGURED_CATALOG, null); - }); - } - @Override protected void assertExpectedStateMessages(final List stateMessages) { assertEquals(1, stateMessages.size());