File tree Expand file tree Collapse file tree
main/java/io/sentry/android/core
test/java/io/sentry/android/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -294,7 +294,6 @@ public static SentryId captureEnvelopeNonTerminating(final @NotNull byte[] envel
294294 });
295295 }
296296
297- // Capture the original envelope as-is (no session item attached).
298297 return scopes.captureEnvelope(envelope);
299298 } catch (Exception e) {
300299 options.getLogger().log(SentryLevel.ERROR, "Failed to capture envelope", e);
Original file line number Diff line number Diff line change @@ -495,7 +495,7 @@ class InternalSentrySdkTest {
495495 assertThat(scopeSession.get().hasNonTerminatingUnhandledError()).isTrue()
496496 assertThat(scopeSession.get().sessionId).isEqualTo(originalSid.get())
497497
498- // and it is persisted so pending survives process death
498+ // and it is persisted so the flag survives process death
499499 val sessionFile = EnvelopeCache.getCurrentSessionFile(fixture.options.cacheDirPath!!)
500500 val persistedSession =
501501 fixture.options.serializer.deserialize(sessionFile.reader(), Session::class.java)!!
@@ -541,10 +541,10 @@ class InternalSentrySdkTest {
541541 fixture.captureEnvelopeNonTerminatingWithEvent(
542542 fixture.createSentryEventWithUnhandledException()
543543 )
544- val pendingSession = AtomicReference<Session>()
545- Sentry.configureScope { scope -> pendingSession .set(scope.session) }
546- val oldSid = pendingSession .get().sessionId
547- assertThat(pendingSession .get().hasNonTerminatingUnhandledError()).isTrue()
544+ val unhandledSession = AtomicReference<Session>()
545+ Sentry.configureScope { scope -> unhandledSession .set(scope.session) }
546+ val oldSid = unhandledSession .get().sessionId
547+ assertThat(unhandledSession .get().hasNonTerminatingUnhandledError()).isTrue()
548548 fixture.capturedEnvelopes.clear()
549549
550550 // when a subsequent hard crash is captured through the existing terminating API
You can’t perform that action at this time.
0 commit comments