Skip to content

Commit

Permalink
try to add conditions to the other test
Browse files Browse the repository at this point in the history
  • Loading branch information
yngvar-antonsson committed Jan 12, 2025
1 parent 400e620 commit 5e33f4a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions test/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,11 @@ def test_death(servers, helpers):
helpers.wait_for(servers[13301].check_status, ['localhost:13302', 'suspect'])
helpers.wait_for(servers[13301].check_status, ['localhost:13302', 'dead'])

servers[13302].start()
helpers.wait_for(servers[13302].connect)
helpers.wait_for(servers[13301].check_status, ['localhost:13302', 'alive'])
helpers.wait_for(servers[13302].check_status, ['localhost:13301', 'alive'])


def test_mark_left(servers, helpers):
servers[13302].kill()
helpers.wait_for(servers[13301].check_status, ['localhost:13302', 'suspect'])
helpers.wait_for(servers[13301].check_status, ['localhost:13302', 'dead'])

assert servers[13301].conn.eval('return membership.mark_left("localhost:13302")')[0]
helpers.wait_for(servers[13301].check_status, ['localhost:13302', 'left'])

servers[13302].start()
helpers.wait_for(servers[13302].connect)
assert servers[13301].conn.eval("return membership.init('localhost', 13302)")[0]

helpers.wait_for(servers[13301].check_status, ['localhost:13302', 'alive'])
helpers.wait_for(servers[13302].check_status, ['localhost:13301', 'alive'])

Expand Down

0 comments on commit 5e33f4a

Please sign in to comment.