Skip to content

Commit 23f612a

Browse files
committed
Fix flaky DatadogRumMonitor tests
1 parent d188b59 commit 23f612a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/dd-sdk-android-rum/src/test/kotlin/com/datadog/android/rum/internal/monitor/DatadogRumMonitorTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ internal class DatadogRumMonitorTest {
205205
val callback = it.getArgument<(DatadogContext, EventWriteScope) -> Unit>(0)
206206
callback.invoke(fakeDatadogContext, mockEventWriteScope)
207207
}
208+
whenever(mockRumFeatureScope.getWriteContextSync()) doReturn (fakeDatadogContext to mockEventWriteScope)
208209

209210
fakeAttributes = forge.exhaustiveAttributes()
210211
testedMonitor = DatadogRumMonitor(

0 commit comments

Comments
 (0)