Fix test_fast_import_event_triggers to expect event triggers to be imported

Since we removed the --no-event-triggers flag, event triggers are now
imported as expected. Update the test to verify this new behavior.

Co-Authored-By: Daniel <daniel@neon.tech>
This commit is contained in:
Devin AI
2025-06-26 14:36:44 +00:00
parent 1b5a3eb775
commit 1cf6eea861

View File

@@ -1001,7 +1001,10 @@ def test_fast_import_event_triggers(
conn = PgProtocol(dsn=f"postgresql://cloud_admin@localhost:{pg_port}/neondb")
res = conn.safe_psql("SELECT count(*) FROM pg_event_trigger;")
log.info(f"Result: {res}")
assert res[0][0] == 0, f"Neon does not support importing event triggers, got: {res[0][0]}"
assert res[0][0] == 1, f"Expected 1 event trigger to be imported, got: {res[0][0]}"
conn.safe_psql("CREATE TABLE test_drop_table (id int);")
conn.safe_psql("DROP TABLE test_drop_table;")
def test_fast_import_restore_to_connstring(