Skip to content

Commit 77b9784

Browse files
committed
Merge branch 'fix/callback-error-handling' into fix/callback-error-handling-apollo-5
2 parents 754ace3 + 92e9ef5 commit 77b9784

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
@@ -259,7 +259,7 @@ class SentryApolloInterceptorTest {
259259
whenever(fixture.scopes.span).thenReturn(tx)
260260
val sut = fixture.getSut { span, _, _ ->
261261
span.spanContext.sampled = false
262-
throw IllegalStateException("callback failed")
262+
error("callback failed")
263263
}
264264

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

0 commit comments

Comments
 (0)