From 1cf6eea861ed6b07121a5c2c492654acdafd1cba Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 26 Jun 2025 14:36:44 +0000 Subject: [PATCH] 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 --- test_runner/regress/test_import_pgdata.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test_runner/regress/test_import_pgdata.py b/test_runner/regress/test_import_pgdata.py index 8d4f908cc0..3884e5b455 100644 --- a/test_runner/regress/test_import_pgdata.py +++ b/test_runner/regress/test_import_pgdata.py @@ -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(