[feed] Try to make tests more stable (#9419)
Signed-off-by: Fabian Wolter <github@fabian-wolter.de>pull/9427/head
parent
765e477702
commit
2e1c56ef76
|
@ -188,7 +188,10 @@ public class FeedHandlerTest extends JavaOSGiTest {
|
||||||
|
|
||||||
private synchronized void unregisterFeedTestServlet() {
|
private synchronized void unregisterFeedTestServlet() {
|
||||||
waitForAssert(() -> assertThat(httpService = getService(HttpService.class), is(notNullValue())));
|
waitForAssert(() -> assertThat(httpService = getService(HttpService.class), is(notNullValue())));
|
||||||
|
try {
|
||||||
httpService.unregister(MOCK_SERVLET_PATH);
|
httpService.unregister(MOCK_SERVLET_PATH);
|
||||||
|
} catch (IllegalArgumentException ignore) {
|
||||||
|
}
|
||||||
servlet = null;
|
servlet = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue