diff --git a/itests/org.openhab.core.config.discovery.mdns.tests/src/main/java/org/eclipse/smarthome/config/discovery/mdns/internal/MDNSDiscoveryServiceOSGiTest.java b/itests/org.openhab.core.config.discovery.mdns.tests/src/main/java/org/eclipse/smarthome/config/discovery/mdns/internal/MDNSDiscoveryServiceOSGiTest.java index bd86b63f74..ec0015f57a 100644 --- a/itests/org.openhab.core.config.discovery.mdns.tests/src/main/java/org/eclipse/smarthome/config/discovery/mdns/internal/MDNSDiscoveryServiceOSGiTest.java +++ b/itests/org.openhab.core.config.discovery.mdns.tests/src/main/java/org/eclipse/smarthome/config/discovery/mdns/internal/MDNSDiscoveryServiceOSGiTest.java @@ -46,11 +46,13 @@ public class MDNSDiscoveryServiceOSGiTest extends JavaOSGiTest { */ @Test public void testDynamicConfigurationOfBackgroundDiscovery() throws IOException { - setBackgroundDiscoveryViaConfigAdmin(true); waitForAssert(() -> assertThat(mdnsDiscoveryService.isBackgroundDiscoveryEnabled(), is(true)), 5000, 100); setBackgroundDiscoveryViaConfigAdmin(false); waitForAssert(() -> assertThat(mdnsDiscoveryService.isBackgroundDiscoveryEnabled(), is(false)), 5000, 100); + + setBackgroundDiscoveryViaConfigAdmin(true); + waitForAssert(() -> assertThat(mdnsDiscoveryService.isBackgroundDiscoveryEnabled(), is(true)), 5000, 100); } private void setBackgroundDiscoveryViaConfigAdmin(boolean status) throws IOException {