[feed] Try to make tests more stable (#9419)
Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
This commit is contained in:
parent
765e477702
commit
2e1c56ef76
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue