Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Missed using the proper variable as limit in a previous PR (issue #2450) (#2541)

Eric Bariauxf0bcb072ff0e
diff --git a/setup/src/load2/java/org/openremote/setup/load2/ManagerSetup.java b/setup/src/load2/java/org/openremote/setup/load2/ManagerSetup.java
index f4c38ebfb..5f5903cf4 100644
--- a/setup/src/load2/java/org/openremote/setup/load2/ManagerSetup.java
+++ b/setup/src/load2/java/org/openremote/setup/load2/ManagerSetup.java
@@ -80,7 +80,7 @@ public class ManagerSetup extends org.openremote.manager.setup.ManagerSetup {
int waitCounter = 0;
int waitCounterLimit = (accounts * assets) / 150;
while (createdAccounts.get() < accounts) {
- if (waitCounter > 200) {
+ if (waitCounter > waitCounterLimit) {
throw new IllegalStateException("Failed to provision all requested devices in the specified time");
}
waitCounter++;