Skip to content

Commit

Permalink
Fix HA tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ratushnyy committed Sep 18, 2023
1 parent 7f630c9 commit c4019f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/ha_tests/test_ha.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,17 +662,17 @@ async def test_scale_up_down(ops_test: OpsTest, continuous_writes):
scales = [3, -3, 4, -4, 5, -5, 6, -6, 7, -7]
for count in scales:
await scale_and_verify(ops_test, count=count)
await _verify_writes(ops_test)
await _verify_writes(ops_test, continuous_writes)


@pytest.mark.abort_on_fail
@pytest.mark.unstable
async def test_scale_up_down_removing_leader(ops_test: OpsTest):
async def test_scale_up_down_removing_leader(ops_test: OpsTest, continuous_writes):
"""Scale up and down the application and verify the replica set is healthy."""
scales = [3, -3, 4, -4, 5, -5, 6, -6, 7, -7]
for count in scales:
await scale_and_verify(ops_test, count=count, remove_leader=True)
await _verify_writes(ops_test)
await _verify_writes(ops_test, continuous_writes)


async def scale_and_verify(ops_test: OpsTest, count: int, remove_leader: bool = False):
Expand Down

0 comments on commit c4019f3

Please sign in to comment.