Skip to content

Commit

Permalink
remove max size exceed test from DefaultMemorySpanBufferTest
Browse files Browse the repository at this point in the history
Since the logic has been moved back to MemoryBufferingExporter
  • Loading branch information
rezastallone committed Sep 30, 2023
1 parent 5426ff4 commit b823d16
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,6 @@ class DefaultMemorySpanBufferTest {

DefaultMemorySpanBuffer backlogProvider = new DefaultMemorySpanBuffer();

@Test
void addFailedSpansToBacklog_givenSpansMoreThanMax_shouldKeepLastMaxSpan() {
List<SpanData> firstSet = new ArrayList<>();
for (int i = 0; i < 110; i++) {
firstSet.add(mock(SpanData.class));
}
List<SpanData> secondSet = new ArrayList<>();
for (int i = 0; i < 20; i++) {
secondSet.add(mock(SpanData.class));
}

firstSet.forEach(backlogProvider::addFailedSpansToBacklog);
secondSet.forEach(backlogProvider::addFailedSpansToBacklog);

assertEquals(100, backlogProvider.drain().size());
}

@Test
void fillFromBacklog_shouldEmptiesBacklog(){
List<SpanData> spans = new ArrayList<>();
Expand Down

0 comments on commit b823d16

Please sign in to comment.