diff --git a/tests/integration/learning/test_discovery_phases.py b/tests/integration/learning/test_discovery_phases.py index caa03615a..4a2ea631f 100644 --- a/tests/integration/learning/test_discovery_phases.py +++ b/tests/integration/learning/test_discovery_phases.py @@ -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): diff --git a/tests/mock/performance_mocks.py b/tests/mock/performance_mocks.py index 2f2425c6f..058927e83 100644 --- a/tests/mock/performance_mocks.py +++ b/tests/mock/performance_mocks.py @@ -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(