File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
sentry-android-core/src/test/java/io/sentry/android/core Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -241,6 +241,9 @@ class InternalSentrySdkTest {
241
241
Sentry .configureScope { scope ->
242
242
assertEquals(3 , scope.breadcrumbs.size)
243
243
}
244
+
245
+ // Ensure we don't interfere with other tests
246
+ Sentry .configureScope(ScopeType .GLOBAL ) { scope -> scope.clear() }
244
247
}
245
248
246
249
@Test
Original file line number Diff line number Diff line change @@ -50,20 +50,13 @@ class SentryLogcatAdapterTest {
50
50
51
51
private val fixture = Fixture ()
52
52
53
- @BeforeTest
54
- fun `set up` () {
55
- Sentry .close()
56
- AppStartMetrics .getInstance().clear()
57
- ContextUtils .resetInstance()
58
- fixture.breadcrumbs.clear()
59
- fixture.logs.clear()
60
- }
61
-
62
53
@AfterTest
63
54
fun `clean up` () {
64
55
AppStartMetrics .getInstance().clear()
65
56
ContextUtils .resetInstance()
66
57
Sentry .close()
58
+ fixture.breadcrumbs.clear()
59
+ fixture.logs.clear()
67
60
}
68
61
69
62
@Test
You can’t perform that action at this time.
0 commit comments