Skip to content

Commit f2ba64f

Browse files
committed
Fix tests
1 parent fb44d20 commit f2ba64f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sentry/src/test/java/io/sentry/OutboxSenderTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import io.sentry.hints.Retryable
55
import io.sentry.protocol.SentryId
66
import io.sentry.protocol.SentryTransaction
77
import io.sentry.util.HintUtils
8+
import io.sentry.util.thread.NoOpMainThreadChecker
89
import org.mockito.kotlin.any
910
import org.mockito.kotlin.argWhere
1011
import org.mockito.kotlin.check
@@ -38,6 +39,7 @@ class OutboxSenderTest {
3839
init {
3940
whenever(options.dsn).thenReturn("https://[email protected]/proj")
4041
whenever(options.dateProvider).thenReturn(SentryNanotimeDateProvider())
42+
whenever(options.mainThreadChecker).thenReturn(NoOpMainThreadChecker.getInstance())
4143
whenever(hub.options).thenReturn(this.options)
4244
}
4345

0 commit comments

Comments
 (0)