Skip to content

Commit 598c1dd

Browse files
committed
Merge branch 'fix/callback-error-handling' into feat/strict-callback-mode
2 parents 5d674d6 + 92e9ef5 commit 598c1dd

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎sentry-apollo-3/src/test/java/io/sentry/apollo3/SentryApollo3InterceptorTest.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ class SentryApollo3InterceptorTest {
323323
fixture.getSut(
324324
beforeSpan = { span, _, _ ->
325325
span.spanContext.sampled = false
326-
throw IllegalStateException("callback failed")
326+
error("callback failed")
327327
}
328328
)
329329

‎sentry-apollo-4/src/test/java/io/sentry/apollo4/SentryApollo4HttpInterceptorTest.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ abstract class SentryApollo4HttpInterceptorTest(
337337
fixture.getSut(
338338
beforeSpan = { span, _, _ ->
339339
span.spanContext.sampled = false
340-
throw IllegalStateException("callback failed")
340+
error("callback failed")
341341
}
342342
)
343343

‎sentry-apollo/src/test/java/io/sentry/apollo/SentryApolloInterceptorTest.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ class SentryApolloInterceptorTest {
260260
whenever(fixture.scopes.span).thenReturn(tx)
261261
val sut = fixture.getSut { span, _, _ ->
262262
span.spanContext.sampled = false
263-
throw IllegalStateException("callback failed")
263+
error("callback failed")
264264
}
265265

266266
assertThat(sut.query(LaunchDetailsQuery.builder().id("83").build()).await().data).isNotNull()

0 commit comments

Comments
 (0)