Skip to content

Commit

Permalink
tests: update basic tracks events scenario
Browse files Browse the repository at this point in the history
50 events batches are no longer a thing since we removed `QueueManager`
  • Loading branch information
wzieba committed Nov 8, 2023
1 parent 52c7a43 commit 3e127ba
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import kotlin.io.path.Path
import kotlin.time.Duration
import kotlin.time.Duration.Companion.milliseconds
import kotlin.time.Duration.Companion.seconds
import kotlin.time.times
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.withTimeoutOrNull
import kotlinx.coroutines.yield
Expand Down Expand Up @@ -46,12 +45,12 @@ class FunctionalTests {
}

/**
* In this scenario, the consumer application tracks more than 50 events-threshold during a flush interval.
* In this scenario, the consumer application tracks 51 events-threshold during a flush interval.
* The SDK will save the events to disk and send them in the next flush interval.
* At the end, when all events are sent, the SDK will delete the content of local storage file.
*/
@Test
fun appTracksEventsAboveQueueSizeLimit() {
fun appTracksEventsDuringTheFlushInterval() {
ActivityScenario.launch(SampleActivity::class.java).use { scenario ->
scenario.onActivity { activity: Activity ->
beforeEach(activity)
Expand Down

0 comments on commit 3e127ba

Please sign in to comment.