Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix unstable ItemChannelLinkResourceOSGiTest (openhab#2536)
New ItemChannelLinkProviders are added asynchronously to the ItemChannelLinkRegistry, which can cause this test to fail: TEST org.openhab.core.io.rest.core.internal.link.ItemChannelLinkResourceOSGiTest#shouldReturnLinks() <<< ERROR: Expected: a collection with size <3> but: collection size was <0> java.lang.AssertionError: Expected: a collection with size <3> but: collection size was <0> at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20) at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6) at org.openhab.core.io.rest.core.internal.link.ItemChannelLinkResourceOSGiTest.shouldReturnLinks(ItemChannelLinkResourceOSGiTest.java:109) Signed-off-by: Wouter Born <github@maindrain.net> GitOrigin-RevId: 39dad81
- Loading branch information