Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions smoketests/tests/replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,8 @@ def test_enable_disable_replication(self):
name = random_string()

self.publish_module(name, num_replicas = 1)
self.cluster.wait_for_leader_change(None)
# ensure database is up and commitlog ends up non-empty
self.run_counter(1, 100)

# suspend first
self.call_control("suspend_database", {"Name": name})
Expand All @@ -500,7 +501,7 @@ def test_enable_disable_replication(self):
self.call_control("unsuspend_database", {"Name": name})

self.cluster.wait_for_leader_change(None)
self.run_counter(1, 100)
self.run_counter(2, 100)

self.call_control("disable_replication", {"Name": name})
self.run_counter(2, 100)
self.run_counter(3, 100)