Fix duplicated running test on one user in cluster mode
@@ -50,7 +50,7 @@ public class ClusteredPerfTestService extends PerfTestService {
public PerfTest getNextRunnablePerfTestPerfTestCandidate() {
List<PerfTest> readyPerfTests = getPerfTestRepository().findAllByStatusAndRegionOrderByScheduledTimeAsc(
Status.READY, getConfig().getRegion());
- List<PerfTest> usersFirstPerfTests = filterCurrentlyRunningTestUsersTest(readyPerfTests);
- return usersFirstPerfTests.isEmpty() ? null : readyPerfTests.get(0);
+ List<PerfTest> filteredPerfTests = filterCurrentlyRunningTestUsersTest(readyPerfTests);
+ return filteredPerfTests.isEmpty() ? null : filteredPerfTests.get(0);
}
}
