We no longer need to lower the parameter here; this test can pass in time with all 5000.

pull/2140/head
jMyles 2020-06-24 14:38:44 -07:00
parent e7387352b2
commit 3a2191248a
2 changed files with 4 additions and 7 deletions

View File

@ -66,15 +66,14 @@ def test_alice_can_learn_about_a_whole_bunch_of_ursulas(highperf_mocked_alice):
# TODO: Consider changing this - #1449
assert VerificationTracker.node_verifications == 1
# A quick setup so that the bytes casting of Ursulas (on what in the real world will be the remote node)
# doesn't take up all the time.
_teacher = highperf_mocked_alice.current_teacher_node()
actual_ursula = MOCK_KNOWN_URSULAS_CACHE[_teacher.rest_interface.port]
# A quick setup so that the bytes casting of Ursulas (on what in the real world will be the remote node)
# doesn't take up all the time.
_teacher_known_nodes_bytestring = actual_ursula.bytestring_of_known_nodes()
actual_ursula.bytestring_of_known_nodes = lambda *args, ** kwargs: _teacher_known_nodes_bytestring # TODO: Formalize this? #1537
with mock_cert_storage, mock_cert_loading, mock_verify_node, mock_message_verification, mock_metadata_validation:
with mock_pubkey_from_bytes(), mock_stamp_call, mock_signature_bytes:
started = time.time()
@ -92,7 +91,6 @@ def test_alice_can_learn_about_a_whole_bunch_of_ursulas(highperf_mocked_alice):
_POLICY_PRESERVER = []
@pytest.mark.parametrize('fleet_of_highperf_mocked_ursulas', [1000], indirect=True)
def test_alice_verifies_ursula_just_in_time(fleet_of_highperf_mocked_ursulas,
highperf_mocked_alice,
highperf_mocked_bob):
@ -124,7 +122,6 @@ def test_alice_verifies_ursula_just_in_time(fleet_of_highperf_mocked_ursulas,
@pytest_twisted.inlineCallbacks
@pytest.mark.parametrize('fleet_of_highperf_mocked_ursulas', [1000], indirect=True)
def test_mass_treasure_map_placement(fleet_of_highperf_mocked_ursulas,
highperf_mocked_alice,
highperf_mocked_bob):

View File

@ -196,8 +196,8 @@ class NotARestApp:
def actual_rest_app(self):
if self._actual_rest_app is None:
self._actual_rest_app, _datastore = make_rest_app(db_filepath="no datastore",
this_node=self.this_node,
serving_domains=(None,))
this_node=self.this_node,
serving_domains=(None,))
_new_view_functions = self._ViewFunctions(self._actual_rest_app.view_functions)
self._actual_rest_app.view_functions = _new_view_functions
self._actual_rest_apps.append(