[feed] Try to make tests more stable (#9419)

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
This commit is contained in:
Fabian Wolter 2020-12-18 21:34:43 +01:00 committed by GitHub
parent 765e477702
commit 2e1c56ef76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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;
} }