Skip to content

Commit 8f0879c

Browse files
committed
Fixed the test as when there are no remaining items in queue then odpEventManager should not flush.
1 parent de1fc0c commit 8f0879c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OptimizelySDK.Tests/OdpTests/OdpEventManagerTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ public void ShouldAddAdditionalInformationToEachEvent()
311311
}
312312

313313
[Test]
314-
public void ShouldAttemptToFlushAnEmptyQueueAtFlushInterval()
314+
public void ShouldNotAttemptToFlushAnEmptyQueueAtFlushInterval()
315315
{
316316
var eventManager = new OdpEventManager.Builder().
317317
WithOdpEventApiManager(_mockApiManager.Object).
@@ -327,7 +327,7 @@ public void ShouldAttemptToFlushAnEmptyQueueAtFlushInterval()
327327
eventManager.Stop();
328328

329329
_mockLogger.Verify(l => l.Log(LogLevel.DEBUG, "Flushing queue."),
330-
Times.AtLeast(3));
330+
Times.Never);
331331
}
332332

333333
[Test]

0 commit comments

Comments
 (0)