sentry-react-native
sentry-react-native copied to clipboard
Stall tracking tests look flaky
Description
https://github.com/getsentry/sentry-react-native/actions/runs/9582859697/job/26422794329?pr=3846
FAIL test/tracing/stalltracking.iteration.test.ts
● Iteration › Stall tracking should update _stallCount and _totalStallTime when timeout condition is met
expect(received).toBeGreaterThanOrEqual(expected)
Expected: >= 100
Received: 99
[44](https://github.com/getsentry/sentry-react-native/actions/runs/9582859697/job/26422794329?pr=3846#step:6:45) | // Check if _stallCount and _totalStallTime have been updated as expected.
[45](https://github.com/getsentry/sentry-react-native/actions/runs/9582859697/job/26422794329?pr=3846#step:6:46) | expect(stallTracking['_stallCount']).toBe(1);
> [46](https://github.com/getsentry/sentry-react-native/actions/runs/9582859697/job/26422794329?pr=3846#step:6:47) | expect(stallTracking['_totalStallTime']).toBeGreaterThanOrEqual(
| ^
[47](https://github.com/getsentry/sentry-react-native/actions/runs/9582859697/job/26422794329?pr=3846#step:6:48) | Math.round(totalTimeTaken - LOOP_TIMEOUT_INTERVAL_MS),
[48](https://github.com/getsentry/sentry-react-native/actions/runs/9582859697/job/26422794329?pr=3846#step:6:49) | );
[49](https://github.com/getsentry/sentry-react-native/actions/runs/9582859697/job/26422794329?pr=3846#step:6:50) | });
at Object.toBeGreaterThanOrEqual (test/tracing/stalltracking.iteration.test.ts:46:46)