Skip to content

Commit 5231140

Browse files
committed
fix HubAdapter and ScopeAdapter tests by calling Sentry.init so that the ScopesStorage is initialized
1 parent e46efe8 commit 5231140

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ class HubAdapterTest {
1919

2020
@BeforeTest
2121
fun `set up`() {
22+
Sentry.init(
23+
SentryOptions().apply {
24+
dsn = "https://key@localhost/proj"
25+
}
26+
)
2227
Sentry.setCurrentScopes(scopes)
2328
}
2429

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ class ScopesAdapterTest {
1919

2020
@BeforeTest
2121
fun `set up`() {
22+
Sentry.init(
23+
SentryOptions().apply {
24+
dsn = "https://key@localhost/proj"
25+
}
26+
)
2227
Sentry.setCurrentScopes(scopes)
2328
}
2429

0 commit comments

Comments
 (0)