Skip to content

Commit

Permalink
Fix test description
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot committed Mar 27, 2023
1 parent 1c06ccd commit dfb4717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smarts/core/tests/test_bubble_hijacking.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def test_bubble_hijacking(smarts, scenarios, bubbles, num_vehicles, traffic_sim)
geometries = [bubble_geometry(b, smarts.road_map) for b in bubbles]

# bubble: vehicle: steps per zone
steps_driven_in_zones = {b.id: defaultdict(lambda: ZoneSteps()) for b in bubbles}
steps_driven_in_zones = {b.id: defaultdict(ZoneSteps) for b in bubbles}
vehicles_made_to_through_bubble = {b.id: [] for b in bubbles}
for _ in range(300):
smarts.step({})
Expand Down Expand Up @@ -165,7 +165,7 @@ def test_bubble_hijacking(smarts, scenarios, bubbles, num_vehicles, traffic_sim)
not in_bubble and not is_shadowing and not is_agent_controlled
)

# Just to have some padding, we want to be in each region at least 4 steps
# Just to have some padding, we want to be in each region at least 2 steps
min_steps = 2
for bubble_id, zones in steps_driven_in_zones.items():
vehicle_ids = vehicles_made_to_through_bubble[bubble_id]
Expand Down

0 comments on commit dfb4717

Please sign in to comment.