Skip to content

Commit

Permalink
One more attempt to fix flappy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-zaitsev committed Oct 9, 2024
1 parent 4323cf9 commit eb46090
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/e2e/test_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@ def test_operator_upgrade(self, manifest, service, version_from, version_to=None
trigger_event.set()
join()

with Then("I recreate shell"):
shell = get_shell()
self.context.shell = shell

with Then("Check that table is here"):
tables = clickhouse.query(chi, "SHOW TABLES")
assert "test_local" in tables
Expand Down Expand Up @@ -402,6 +406,10 @@ def test_operator_restart(self, manifest, service, version=None):
trigger_event.set()
join()

with Then("I recreate shell"):
shell = get_shell()
self.context.shell = shell

with Then("Local tables should have exactly the same number of rows"):
cnt0 = clickhouse.query(chi, "select count() from test_local", host=f'chi-{chi}-{cluster}-0-0-0')
cnt1 = clickhouse.query(chi, "select count() from test_local", host=f'chi-{chi}-{cluster}-1-0-0')
Expand Down Expand Up @@ -549,6 +557,10 @@ def test_008_3(self):
trigger_event.set()
join()

with Then("I recreate shell"):
shell = get_shell()
self.context.shell = shell

with Finally("I clean up"):
delete_test_namespace()

Expand Down

0 comments on commit eb46090

Please sign in to comment.