Skip to content

Commit

Permalink
Changes test to atLeastOnce() rather than exactly 1
Browse files Browse the repository at this point in the history
  • Loading branch information
spencergibb committed Jan 29, 2025
1 parent 4256bc9 commit 86f29f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void watchPublishesEvent() {

setupWatch(eventPublisher, new GetValue(), "/app/");

verify(eventPublisher, times(1)).publishEvent(any(RefreshEvent.class));
verify(eventPublisher, atLeastOnce()).publishEvent(any(RefreshEvent.class));
}

@Test
Expand Down

0 comments on commit 86f29f7

Please sign in to comment.