Skip to content

Commit 6d183f3

Browse files
committed
Fix test
1 parent 185b5dc commit 6d183f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sentry-android-core/src/test/java/io/sentry/android/core/AppComponentsBreadcrumbsIntegrationTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,21 +151,21 @@ class AppComponentsBreadcrumbsIntegrationTest {
151151
fun `low memory changes are debounced`() {
152152
val sut = fixture.getSut()
153153

154-
val scopes = mock<IScopes>()
154+
val hub = mock<IHub>()
155155
val options = SentryAndroidOptions().apply {
156156
executorService = ImmediateExecutorService()
157157
}
158-
sut.register(scopes, options)
158+
sut.register(hub, options)
159159
sut.onTrimMemory(ComponentCallbacks2.TRIM_MEMORY_BACKGROUND)
160160
sut.onTrimMemory(ComponentCallbacks2.TRIM_MEMORY_RUNNING_CRITICAL)
161161

162162
// should only add the first crumb
163-
verify(scopes).addBreadcrumb(
163+
verify(hub).addBreadcrumb(
164164
check<Breadcrumb> {
165165
assertEquals(it.data["level"], 40)
166166
},
167167
anyOrNull()
168168
)
169-
verifyNoMoreInteractions(scopes)
169+
verifyNoMoreInteractions(hub)
170170
}
171171
}

0 commit comments

Comments
 (0)