From e2709ba2ca83e989e5ecfdeb9404fc2dd23c9be2 Mon Sep 17 00:00:00 2001 From: Arjan Mels <43108771+arjanmels@users.noreply.github.com> Date: Wed, 13 Sep 2023 08:40:33 +0200 Subject: [PATCH] [groupepsa] Fixed timeouts in tests (#15574) Signed-off-by: Arjan Mels --- .../groupepsa/internal/things/GroupePSAHandlerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.binding.groupepsa/src/test/java/org/openhab/binding/groupepsa/internal/things/GroupePSAHandlerTest.java b/bundles/org.openhab.binding.groupepsa/src/test/java/org/openhab/binding/groupepsa/internal/things/GroupePSAHandlerTest.java index c88a0c919..b640abc09 100644 --- a/bundles/org.openhab.binding.groupepsa/src/test/java/org/openhab/binding/groupepsa/internal/things/GroupePSAHandlerTest.java +++ b/bundles/org.openhab.binding.groupepsa/src/test/java/org/openhab/binding/groupepsa/internal/things/GroupePSAHandlerTest.java @@ -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)));