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();
|
unregisterFeedTestServlet();
|
||||||
|
|
||||||
// Wait for FeedHandler to be unregistered
|
if (feedThing != null) {
|
||||||
waitForAssert(() -> {
|
// Wait for FeedHandler to be unregistered
|
||||||
feedHandler = (FeedHandler) feedThing.getHandler();
|
waitForAssert(() -> {
|
||||||
assertThat(feedHandler, is(nullValue()));
|
feedHandler = (FeedHandler) feedThing.getHandler();
|
||||||
});
|
assertThat(feedHandler, is(nullValue()));
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private synchronized void registerFeedTestServlet() {
|
private synchronized void registerFeedTestServlet() {
|
||||||
|
Loading…
Reference in New Issue
Block a user