]> git.basschouten.com Git - openhab-addons.git/commitdiff
[groupepsa] Fixed timeouts in tests (#15574)
authorArjan Mels <43108771+arjanmels@users.noreply.github.com>
Wed, 13 Sep 2023 06:40:33 +0000 (08:40 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Sep 2023 06:40:33 +0000 (08:40 +0200)
Signed-off-by: Arjan Mels <github@mels.email>
bundles/org.openhab.binding.groupepsa/src/test/java/org/openhab/binding/groupepsa/internal/things/GroupePSAHandlerTest.java

index c88a0c91997092a569f8dc9e9e3787782417c129..b640abc09394ea4d0be852e2d87d16d0510a513a 100644 (file)
@@ -141,7 +141,7 @@ public class GroupePSAHandlerTest {
         bridgeHandler.initialize();
 
         // check that the bridge is online
-        verify(bridgeCallback, timeout(2000)).statusUpdated(eq(bridge),
+        verify(bridgeCallback, timeout(10000)).statusUpdated(eq(bridge),
                 argThat(arg -> arg.getStatus().equals(ThingStatus.ONLINE)));
 
         // Initialize the thing
@@ -149,7 +149,7 @@ public class GroupePSAHandlerTest {
 
         // check that the thing is offline without detail (last update time is not
         // within 15 minutes)
-        verify(thingCallback, timeout(2000)).statusUpdated(eq(thing),
+        verify(thingCallback, timeout(10000)).statusUpdated(eq(thing),
                 argThat(arg -> arg.getStatus().equals(ThingStatus.OFFLINE)
                         && arg.getStatusDetail().equals(ThingStatusDetail.NONE)));