Skip to content

Commit

Permalink
Updating testcase to wait for more than one event.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldhosembabu committed Jan 4, 2023
1 parent 56f66de commit 44f3662
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ public void onUnrelatedEvents_doesNotNotify() {
analyticsConnector.invokeListenerOnEvent(ANALYTICS_EVENT_NAME);
analyticsConnector.invokeListenerOnEvent("some_other_event");
analyticsConnector.invokeListenerOnEvent(ANALYTICS_EVENT_NAME);
await().timeout(2, SECONDS).until(() -> subscriber.valueCount() > 0);
await().timeout(2, SECONDS).until(() -> subscriber.valueCount() > 1);

List<Object> triggeredMessages = getPlainValues(subscriber);
assertThat(triggeredMessages.size()).isEqualTo(2);
Expand Down

0 comments on commit 44f3662

Please sign in to comment.