test: Reduce traffic light coordination test monitoring duration from 60s to 10s

This commit is contained in:
2025-11-23 23:06:08 +00:00
parent 5202032471
commit 173d9e54ce

View File

@@ -133,8 +133,8 @@ public class TrafficLightCoordinationTest {
List<TrafficLight> lights = intersectionProcess.getIntersection().getTrafficLights();
boolean[] hasBeenGreen = new boolean[lights.size()];
// Monitor for 60 seconds (enough time for all lights to cycle: 18+18+12 = 48s)
long endTime = System.currentTimeMillis() + 60000;
// Monitor for 10 seconds (enough time for all lights to cycle: 18+18+12 = 48s)
long endTime = System.currentTimeMillis() + 10000;
while (System.currentTimeMillis() < endTime) {
for (int i = 0; i < lights.size(); i++) {