Admist reports from others on the team of having to code these values up... coding these values up.

pull/1741/head
jMyles 2020-08-31 14:39:54 -07:00
parent 3f07bb8b33
commit ce0684c037
1 changed files with 2 additions and 3 deletions

View File

@ -199,13 +199,12 @@ def test_mass_treasure_map_placement(fleet_of_highperf_mocked_ursulas,
complete_distribution_time = datetime.now() - started
partial_blocking_duration = little_while_ended_at - started
# Before Treasure Island (1741), this process took about 3 minutes.
if partial_blocking_duration.total_seconds() > 3:
if partial_blocking_duration.total_seconds() > 10:
pytest.fail(
f"Took too long ({partial_blocking_duration}) to contact {len(policy.publishing_mutex.nodes_contacted_during_partial_block)} nodes ({complete_distribution_time} total.)")
# TODO: Assert that no nodes outside those expected received the map.
assert complete_distribution_time.total_seconds() < 8
# On CI, we expect these times to be even less. (Around 1 and 3.5 seconds, respectively)
assert complete_distribution_time.total_seconds() < 20
# But with debuggers and other processes running on laptops, we give a little leeway.
# We have the same number of successful responses as nodes we expected to have the map.