Skip to content

Commit cce88aa

Browse files
author
chenyunliang520
committed
make replication-slot tests robust and strict
1 parent 63cabfc commit cce88aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_logical_decoding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def _create_slot(cur):
5959

6060
def _read_changes(cur):
6161
cur.execute(
62-
"SELECT data FROM pg_logical_slot_peek_changes(%s, NULL, %s);",
62+
"SELECT data FROM pg_logical_slot_get_changes(%s, NULL, %s);",
6363
(SLOT_NAME, 4096),
6464
)
6565
rows = cur.fetchall()

0 commit comments

Comments
 (0)