[mielecloud] Increase timeout for integration tests (#11306)

Signed-off-by: Björn Lange <bjoern.lange@tu-dortmund.de>
This commit is contained in:
Björn Lange 2021-09-26 19:05:35 +02:00 committed by GitHub
parent b65b27a497
commit 0d5ecd3417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,6 +129,12 @@ public abstract class AbstractMieleThingHandlerTest extends JavaOSGiTest {
return Objects.requireNonNull(itemRegistry); 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() { private void setUpThingRegistry() {
thingRegistry = getService(ThingRegistry.class, ThingRegistry.class); thingRegistry = getService(ThingRegistry.class, ThingRegistry.class);
assertNotNull(thingRegistry, "Thing registry is missing"); assertNotNull(thingRegistry, "Thing registry is missing");