Skip to content

Commit 7d7392e

Browse files
authored
Merge pull request #2663 from DataDog/nogorodnikov/fix-flaky-datadogrummonitor-tests-200525
Fix flaky `DatadogRumMonitor` tests
2 parents d188b59 + 23f612a commit 7d7392e

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)