diff --git a/DatadogCore/Tests/Datadog/RUM/RUMMonitorTests.swift b/DatadogCore/Tests/Datadog/RUM/RUMMonitorTests.swift index 72108a8e2a..acee637be6 100644 --- a/DatadogCore/Tests/Datadog/RUM/RUMMonitorTests.swift +++ b/DatadogCore/Tests/Datadog/RUM/RUMMonitorTests.swift @@ -1254,8 +1254,8 @@ class RUMMonitorTests: XCTestCase { func testRUMEvents_containSessionSampleRate() throws { // Given - // Set a high sample rate to be sure that the session will be sampled in this test. - // we want to test the session sample rate is sent in the RUM event, not the session sampling itself. + // We can't use arbitrary value here, because this will sample out some events and we won't be able to assert + // Hence, we use 100% sample rate to be sure that all events will be sent config.sessionSampleRate = 100 RUM.enable(with: config, in: core)