Increase stability of MDNSDiscoveryServiceOSGiTest by increasing timeouts to 5s (#687)

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born 2019-03-31 13:38:49 +02:00 committed by Markus Rathgeb
parent c6a9085a74
commit fc5f5bba91

View File

@ -47,10 +47,10 @@ public class MDNSDiscoveryServiceOSGiTest extends JavaOSGiTest {
@Test
public void testDynamicConfigurationOfBackgroundDiscovery() throws IOException {
setBackgroundDiscoveryViaConfigAdmin(true);
waitForAssert(() -> assertThat(mdnsDiscoveryService.isBackgroundDiscoveryEnabled(), is(true)), 2000, 100);
waitForAssert(() -> assertThat(mdnsDiscoveryService.isBackgroundDiscoveryEnabled(), is(true)), 5000, 100);
setBackgroundDiscoveryViaConfigAdmin(false);
waitForAssert(() -> assertThat(mdnsDiscoveryService.isBackgroundDiscoveryEnabled(), is(false)), 2000, 100);
waitForAssert(() -> assertThat(mdnsDiscoveryService.isBackgroundDiscoveryEnabled(), is(false)), 5000, 100);
}
private void setBackgroundDiscoveryViaConfigAdmin(boolean status) throws IOException {