def test_get_alive_dead_heartbeats(store, random_heartbeats): # kill an account by publishing one expired folder make_dead_heartbeat(store, random_heartbeats, 3, 1, 100) alive = list_alive_accounts() assert '3' not in alive dead = list_dead_accounts() assert dead == ['3']
def test_get_alive_dead_heartbeats(store, random_heartbeats): # kill an account by publishing one expired folder make_dead_heartbeat(store, random_heartbeats, 3, 1, 100) alive = list_alive_accounts() assert "3" not in alive dead = list_dead_accounts() assert dead == ["3"]
def test_count_heartbeats(random_heartbeats): accounts = list_alive_accounts(count=True) assert accounts == 10