Skip to content

Commit

Permalink
Turn off disk usage when doing session payload diff test
Browse files Browse the repository at this point in the history
  • Loading branch information
bidetofevil committed Sep 23, 2024
1 parent 993afa1 commit 7ac98e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package io.embrace.android.embracesdk.testcases
import androidx.test.ext.junit.runners.AndroidJUnit4
import io.embrace.android.embracesdk.IntegrationTestRule
import io.embrace.android.embracesdk.ResourceReader
import io.embrace.android.embracesdk.fakes.behavior.FakeAutoDataCaptureBehavior
import io.embrace.android.embracesdk.internal.clock.millisToNanos
import io.embrace.android.embracesdk.internal.clock.nanosToMillis
import io.embrace.android.embracesdk.internal.spans.findAttributeValue
Expand All @@ -21,7 +22,11 @@ internal class SessionApiTest {

@Rule
@JvmField
val testRule: IntegrationTestRule = IntegrationTestRule()
val testRule: IntegrationTestRule = IntegrationTestRule {
IntegrationTestRule.Harness().apply {
overriddenConfigService.autoDataCaptureBehavior = FakeAutoDataCaptureBehavior(diskUsageReportingEnabled = false)
}
}

/**
* Verifies that a session end message is sent.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@
"os_version": "__EMBRACE_TEST_IGNORE__",
"os_code": "__EMBRACE_TEST_IGNORE__",
"screen_resolution": "__EMBRACE_TEST_IGNORE__",
"num_cores": "__EMBRACE_TEST_IGNORE__",
"disk_space": "__EMBRACE_TEST_IGNORE__"
"num_cores": "__EMBRACE_TEST_IGNORE__"
},
"s": "__EMBRACE_TEST_IGNORE__",
"type": "spans",
"version": "0.1.0"
}

0 comments on commit 7ac98e5

Please sign in to comment.