mirror of
https://github.com/davidalves04/Trabalho-Pratico-SD.git
synced 2025-12-08 12:33:31 +00:00
test: Reduce traffic light coordination test monitoring duration from 60s to 10s
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user