@@ -13,9 +13,11 @@ import androidx.test.ext.junit.runners.AndroidJUnit4
1313import io.embrace.android.embracesdk.internal.arch.schema.EmbType
1414import io.embrace.android.embracesdk.internal.config.remote.AppExitInfoConfig
1515import io.embrace.android.embracesdk.internal.config.remote.RemoteConfig
16+ import io.embrace.android.embracesdk.internal.logging.InternalErrorType
1617import io.embrace.android.embracesdk.internal.payload.Log
1718import io.embrace.android.embracesdk.internal.spans.findAttributeValue
1819import io.embrace.android.embracesdk.testframework.SdkIntegrationTestRule
20+ import io.embrace.android.embracesdk.testframework.actions.EmbraceSetupInterface
1921import io.embrace.android.embracesdk.testframework.assertions.assertMatches
2022import io.embrace.android.embracesdk.testframework.assertions.getLastLog
2123import io.embrace.android.embracesdk.testframework.assertions.getLogOfType
@@ -65,7 +67,14 @@ internal class AeiFeatureTest {
6567
6668 @Rule
6769 @JvmField
68- val testRule: SdkIntegrationTestRule = SdkIntegrationTestRule ()
70+ val testRule: SdkIntegrationTestRule = SdkIntegrationTestRule {
71+ EmbraceSetupInterface (
72+ ignoredInternalErrors = listOf (
73+ InternalErrorType .APP_LAUNCH_TRACE_FAIL ,
74+ InternalErrorType .DISK_STAT_CAPTURE_FAIL
75+ )
76+ )
77+ }
6978
7079 private val jvmCrash = TestAeiData (
7180 ApplicationExitInfo .REASON_CRASH ,
@@ -136,9 +145,7 @@ internal class AeiFeatureTest {
136145 recordSession()
137146 },
138147 assertAction = {
139- val log = getLogEnvelopes(2 )
140- .flatMap { checkNotNull(it.data.logs) }
141- .single { it.attributes?.findAttributeValue(" emb.type" ) == " sys.exit" }
148+ val log = getSingleLogEnvelope().getLogOfType(EmbType .System .Exit )
142149 log.assertContainsAeiData(anr)
143150 }
144151 )
0 commit comments