mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-10 21:31:53 +01:00
Increase stability of MDNSDiscoveryServiceOSGiTest by increasing timeouts to 5s (#687)
Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
parent
c6a9085a74
commit
fc5f5bba91
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user