Skip to content

Commit 2feeb65

Browse files
committed
update query and assertion
1 parent 530a36c commit 2feeb65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/tests/test_e2e.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,12 +520,12 @@ def compare_config():
520520
self.eventuallyEqual(lambda: k8s.get_operator_state(), {"0": "idle"}, "Operator does not get in sync")
521521

522522
deleted_slot_query = """
523-
SELECT count(*)
523+
SELECT slot_name
524524
FROM pg_replication_slots
525525
WHERE slot_name = '%s';
526526
""" % (slot_to_remove)
527527

528-
self.eventuallyEqual(lambda: self.query_database(replica.metadata.name, "postgres", deleted_slot_query)[0], 0,
528+
self.eventuallyEqual(lambda: len(self.query_database(replica.metadata.name, "postgres", deleted_slot_query)), 0,
529529
"The replication slot cannot be deleted", 10, 5)
530530

531531
except timeout_decorator.TimeoutError:

0 commit comments

Comments
 (0)