Skip to content

Commit bd2566b

Browse files
committed
updated changelog
1 parent 23d6b12 commit bd2566b

File tree

1 file changed

+1
-28
lines changed
  • sentry-android-integration-tests/sentry-uitest-android/src/androidTest/java/io/sentry/uitest/android

1 file changed

+1
-28
lines changed

sentry-android-integration-tests/sentry-uitest-android/src/androidTest/java/io/sentry/uitest/android/SdkInitTests.kt

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -112,21 +112,12 @@ class SdkInitTests : BaseUiTest() {
112112

113113
@Test
114114
fun doubleInitDoesNotWait() {
115-
relayIdlingResource.increment()
116-
// Let's make the first request timeout
117-
relay.addTimeoutResponse()
118-
119-
initSentry(true) { options: SentryAndroidOptions -> options.tracesSampleRate = 1.0 }
120-
121-
Sentry.startTransaction("beforeRestart", "emptyTransaction").finish()
115+
initSentry()
122116

123117
// We want the SDK to start sending the event. If we don't wait, it's possible we don't send
124118
// anything before the SDK is restarted
125119
waitUntilIdle()
126120

127-
relayIdlingResource.increment()
128-
relayIdlingResource.increment()
129-
130121
val beforeRestart = System.currentTimeMillis()
131122
// We restart the SDK. This shouldn't block the main thread, but new options (e.g. profiling)
132123
// should work
@@ -137,27 +128,9 @@ class SdkInitTests : BaseUiTest() {
137128
val afterRestart = System.currentTimeMillis()
138129
val restartMs = afterRestart - beforeRestart
139130

140-
Sentry.startTransaction("afterRestart", "emptyTransaction").finish()
141131
// We assert for less than 1 second just to account for slow devices in saucelabs or headless
142132
// emulator
143133
assertTrue(restartMs < 1000, "Expected less than 1000 ms for SDK restart. Got $restartMs ms")
144-
145-
relay.assert {
146-
findEnvelope { assertEnvelopeTransaction(it.items.toList()).transaction == "beforeRestart" }
147-
.assert {
148-
it.assertTransaction()
149-
// No profiling item, as in the first init it was not enabled
150-
it.assertNoOtherItems()
151-
}
152-
findEnvelope { assertEnvelopeTransaction(it.items.toList()).transaction == "afterRestart" }
153-
.assert {
154-
it.assertTransaction()
155-
// There is a profiling item, as in the second init it was enabled
156-
it.assertProfile()
157-
it.assertNoOtherItems()
158-
}
159-
assertNoOtherEnvelopes()
160-
}
161134
}
162135

163136
@Test

0 commit comments

Comments
 (0)