[Fix] Fixed broken tests due to change to async updates
This commit is contained in:
parent
e1ce116460
commit
fe20b0066e
|
@ -99,10 +99,12 @@ public class PlcHandlerTest {
|
||||||
});
|
});
|
||||||
|
|
||||||
plcHandler.send("PLC", "Running");
|
plcHandler.send("PLC", "Running");
|
||||||
|
Thread.sleep(50L);
|
||||||
assertTrue(value.get());
|
assertTrue(value.get());
|
||||||
assertTrue(getAddress(addressId).getBoolean(PARAM_VALUE));
|
assertTrue(getAddress(addressId).getBoolean(PARAM_VALUE));
|
||||||
|
|
||||||
plcHandler.send("PLC", "NotRunning");
|
plcHandler.send("PLC", "NotRunning");
|
||||||
|
Thread.sleep(50L);
|
||||||
assertFalse(value.get());
|
assertFalse(value.get());
|
||||||
assertFalse(getAddress(addressId).getBoolean(PARAM_VALUE));
|
assertFalse(getAddress(addressId).getBoolean(PARAM_VALUE));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue