Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Jan N. Klug <[email protected]>
  • Loading branch information
J-N-K committed Nov 5, 2022
1 parent c010a0d commit 58e1ff0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import org.openhab.core.items.events.GroupItemStateChangedEvent;
import org.openhab.core.items.events.GroupStateUpdatedEvent;
import org.openhab.core.items.events.ItemCommandEvent;
import org.openhab.core.items.events.ItemStateUpdatedEvent;
import org.openhab.core.items.events.ItemUpdatedEvent;
import org.openhab.core.library.CoreItemFactory;
import org.openhab.core.library.items.ColorItem;
Expand Down Expand Up @@ -471,9 +472,10 @@ public void assertThatGroupItemPostsEventsForChangesCorrectly() {

events.clear();

// State doesn't change -> no events are fired
// State doesn't change -> only update event is posted
member.setState(member.getState());
assertThat(events.size(), is(0));
waitForAssert(() -> assertThat(events.size(), is(1)));
assertThat(events.get(0), is(instanceOf(ItemStateUpdatedEvent.class)));
}

@Test
Expand Down

0 comments on commit 58e1ff0

Please sign in to comment.