mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-23 16:10:37 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user