Skip to content

Commit 7efd093

Browse files
committed
Add assertions to sendEventsDoesNotThrowWhenQueueIsFull test
Verify that isFull() is called, events are popped, and sender is not called when queue is full and there are no events to send. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> AI-Session-Id: c83b3557-2c02-4d13-aaa4-273b7340163d AI-Tool: claude-code AI-Model: unknown
1 parent 0b19b54 commit 7efd093

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tracker/src/test/java/io/split/client/events/EventsTaskTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ public void sendEventsDoesNotThrowWhenQueueIsFull() {
7070
when(_storage.isFull()).thenReturn(true);
7171
when(_storage.popAll()).thenReturn(Collections.<WrappedEvent>emptyList());
7272
_task.sendEvents();
73+
verify(_storage).isFull();
74+
verify(_storage).popAll();
75+
verifyZeroInteractions(_sender);
7376
}
7477

7578
private static Event makeEvent(String type) {

0 commit comments

Comments
 (0)