Пример #1
0
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']
Пример #2
0
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"]
Пример #3
0
def test_count_heartbeats(random_heartbeats):
    accounts = list_alive_accounts(count=True)
    assert accounts == 10
Пример #4
0
def test_count_heartbeats(random_heartbeats):
    accounts = list_alive_accounts(count=True)
    assert accounts == 10