mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[feed] Try to make tests more stable (#9565)
Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
This commit is contained in:
parent
bf2d40c5bc
commit
235a719ed9
@ -169,11 +169,13 @@ public class FeedHandlerTest extends JavaOSGiTest {
|
||||
|
||||
unregisterFeedTestServlet();
|
||||
|
||||
// Wait for FeedHandler to be unregistered
|
||||
waitForAssert(() -> {
|
||||
feedHandler = (FeedHandler) feedThing.getHandler();
|
||||
assertThat(feedHandler, is(nullValue()));
|
||||
});
|
||||
if (feedThing != null) {
|
||||
// Wait for FeedHandler to be unregistered
|
||||
waitForAssert(() -> {
|
||||
feedHandler = (FeedHandler) feedThing.getHandler();
|
||||
assertThat(feedHandler, is(nullValue()));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private synchronized void registerFeedTestServlet() {
|
||||
|
Loading…
Reference in New Issue
Block a user