From b823d16b3c6e5ce52c883920f4d1e2acdf8c455c Mon Sep 17 00:00:00 2001 From: reza stallone Date: Sat, 30 Sep 2023 15:37:47 +0700 Subject: [PATCH] remove max size exceed test from DefaultMemorySpanBufferTest Since the logic has been moved back to MemoryBufferingExporter --- .../splunk/rum/DefaultMemorySpanBufferTest.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/splunk-otel-android/src/test/java/com/splunk/rum/DefaultMemorySpanBufferTest.java b/splunk-otel-android/src/test/java/com/splunk/rum/DefaultMemorySpanBufferTest.java index 83a48d912..ec5730f81 100644 --- a/splunk-otel-android/src/test/java/com/splunk/rum/DefaultMemorySpanBufferTest.java +++ b/splunk-otel-android/src/test/java/com/splunk/rum/DefaultMemorySpanBufferTest.java @@ -14,23 +14,6 @@ class DefaultMemorySpanBufferTest { DefaultMemorySpanBuffer backlogProvider = new DefaultMemorySpanBuffer(); - @Test - void addFailedSpansToBacklog_givenSpansMoreThanMax_shouldKeepLastMaxSpan() { - List firstSet = new ArrayList<>(); - for (int i = 0; i < 110; i++) { - firstSet.add(mock(SpanData.class)); - } - List 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 spans = new ArrayList<>();