From 0d5ecd3417548e304376c72d04a60e9cb29a4b4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Lange?= Date: Sun, 26 Sep 2021 19:05:35 +0200 Subject: [PATCH] [mielecloud] Increase timeout for integration tests (#11306) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Björn Lange --- .../internal/handler/AbstractMieleThingHandlerTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/itests/org.openhab.binding.mielecloud.tests/src/main/java/org/openhab/binding/mielecloud/internal/handler/AbstractMieleThingHandlerTest.java b/itests/org.openhab.binding.mielecloud.tests/src/main/java/org/openhab/binding/mielecloud/internal/handler/AbstractMieleThingHandlerTest.java index 0b44c5a13..0bd58057b 100644 --- a/itests/org.openhab.binding.mielecloud.tests/src/main/java/org/openhab/binding/mielecloud/internal/handler/AbstractMieleThingHandlerTest.java +++ b/itests/org.openhab.binding.mielecloud.tests/src/main/java/org/openhab/binding/mielecloud/internal/handler/AbstractMieleThingHandlerTest.java @@ -129,6 +129,12 @@ public abstract class AbstractMieleThingHandlerTest extends JavaOSGiTest { return Objects.requireNonNull(itemRegistry); } + @Override + protected void waitForAssert(Runnable assertion) { + // Use a larger timeout to avoid test failures in the CI build. + waitForAssert(assertion, 2 * DFL_TIMEOUT, 2 * DFL_SLEEP_TIME); + } + private void setUpThingRegistry() { thingRegistry = getService(ThingRegistry.class, ThingRegistry.class); assertNotNull(thingRegistry, "Thing registry is missing");