Skip to content

Flaky App Start Test #4197

@krystofwoldrich

Description

@krystofwoldrich

Description

This test is flaky. (One in 10 run, maybe less, but it is)

**FAIL  test/tracing/integrations/appStart.test.ts (10.966 s)
    ● App Start Integration › Standalone App Start › adds ui kit init start mark as a child of the main app start span
  
      expect(received).toEqual(expected) // deep equality
  
      - Expected  - 3
      + Received  + 9
  
      - ObjectContaining {
      -   "data": ObjectContaining {
      + Object {
      +   "data": Object {
      +     "sentry.op": "app.start.cold",
            "sentry.origin": "auto.app.start",
          },
          "description": "UIKit Init to JS Exec Start",
      +   "op": "app.start.cold",
          "origin": "auto.app.start",
      +   "parent_span_id": "8c54b0acc4d08d8b",
      +   "span_id": "9275b85b7ed89654",
          "start_timestamp": 1729519015.859,
      -   "timestamp": NumberCloseTo 1729519015.909 (2 digits),
      +   "status": "ok",
      +   "timestamp": 1729519015.9[26](https://github.com/getsentry/sentry-react-native/actions/runs/11441700199/job/31830365871#step:6:27),
      +   "trace_id": "2ec172e61a3143f5b5ae84182fee7d19",
        }
  
        [31](https://github.com/getsentry/sentry-react-native/actions/runs/11441700199/job/31830365871#step:6:32)1 |
        312 |       expect(nativeRuntimeInitSpan).toBeDefined();
      > 313 |       expect(nativeRuntimeInitSpan).toEqual(
            |                                     ^
        314 |         expect.objectContaining(<Partial<SpanJSON>>{
        315 |           description: 'UIKit Init to JS Exec Start',
        316 |           start_timestamp: (timeOriginMilliseconds - 100) / 1000,
  
        at Object.<anonymous> (test/tracing/integrations/appStart.test.ts:313:[37](https://github.com/getsentry/sentry-react-native/actions/runs/11441700199/job/31830365871#step:6:38))
        at fulfilled (node_modules/tslib/tslib.js:166:62)
**

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions