diff --git a/itests/org.openhab.binding.feed.tests/src/main/java/org/openhab/binding/feed/test/FeedHandlerTest.java b/itests/org.openhab.binding.feed.tests/src/main/java/org/openhab/binding/feed/test/FeedHandlerTest.java index 1e3d25015..d25a832d0 100644 --- a/itests/org.openhab.binding.feed.tests/src/main/java/org/openhab/binding/feed/test/FeedHandlerTest.java +++ b/itests/org.openhab.binding.feed.tests/src/main/java/org/openhab/binding/feed/test/FeedHandlerTest.java @@ -188,7 +188,10 @@ public class FeedHandlerTest extends JavaOSGiTest { private synchronized void unregisterFeedTestServlet() { waitForAssert(() -> assertThat(httpService = getService(HttpService.class), is(notNullValue()))); - httpService.unregister(MOCK_SERVLET_PATH); + try { + httpService.unregister(MOCK_SERVLET_PATH); + } catch (IllegalArgumentException ignore) { + } servlet = null; }