Fixed smoke test.

This commit is contained in:
Axel 2021-03-02 16:41:41 +01:00 committed by Jacopo Bartiromo
parent bb05155688
commit 33981f135b
1 changed files with 1 additions and 2 deletions

View File

@ -117,7 +117,6 @@ class TestDeterminism(SmokeTest):
# run simulation 1
vehicle_actor_list = self.spawn_vehicles(world, blueprint_transform_list)
record_run1 = self.run_simulation(world, vehicle_actor_list)
traffic_manager.set_synchronous_mode(False)
# reset for simulation 2
self.client.reload_world(False)
@ -129,9 +128,9 @@ class TestDeterminism(SmokeTest):
#run simulation 2
vehicle_actor_list = self.spawn_vehicles(world, blueprint_transform_list)
record_run2 = self.run_simulation(world, vehicle_actor_list)
traffic_manager.set_synchronous_mode(False)
self.client.reload_world()
traffic_manager.set_synchronous_mode(False)
world.apply_settings(old_settings)
self.compare_records(record_run1, record_run2)