Skip to content

Commit be68153

Browse files
committed
update query and assertion
1 parent 78a0eb9 commit be68153

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
@@ -517,12 +517,12 @@ def compare_config():
517517
self.eventuallyEqual(lambda: k8s.get_operator_state(), {"0": "idle"}, "Operator does not get in sync")
518518

519519
deleted_slot_query = """
520-
SELECT count(*)
520+
SELECT slot_name
521521
FROM pg_replication_slots
522522
WHERE slot_name = '%s';
523523
""" % (slot_to_remove)
524524

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

528528
except timeout_decorator.TimeoutError:

0 commit comments

Comments
 (0)