[Fix] Fixed broken tests due to change to async updates

This commit is contained in:
Robert von Burg 2022-05-05 15:25:00 +02:00
parent e1ce116460
commit fe20b0066e
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 2 additions and 0 deletions

View File

@ -99,10 +99,12 @@ public class PlcHandlerTest {
});
plcHandler.send("PLC", "Running");
Thread.sleep(50L);
assertTrue(value.get());
assertTrue(getAddress(addressId).getBoolean(PARAM_VALUE));
plcHandler.send("PLC", "NotRunning");
Thread.sleep(50L);
assertFalse(value.get());
assertFalse(getAddress(addressId).getBoolean(PARAM_VALUE));
}