Skip to content

[Flaky CI]: setHooksAsyncContextStrategy() › with withIsolationScope() › correctly keeps track of isolation scope across asynchronous operations #11131

Closed
@AbhiPrasad

Description

@AbhiPrasad

Flakiness Type

Assertion failure

Name of Job

Node (20) Unit Tests

Name of Test

@sentry/node-experimental:test - test/async/hooks.test.ts

Link to Test Run

https://github.com/getsentry/sentry-javascript/actions/runs/8297547441/job/22709056283?pr=11129

Details

 FAIL  test/async/hooks.test.ts
  ● setHooksAsyncContextStrategy() › with withIsolationScope() › correctly keeps track of isolation scope across asynchronous operations

    expect.assertions(7)

    Expected seven assertions to be called but received six assertion calls.

      51 |
      52 |     it('correctly keeps track of isolation scope across asynchronous operations', done => {
    > 53 |       expect.assertions(7);
         |              ^
      54 |       setHooksAsyncContextStrategy();
      55 |
      56 |       const topLevelIsolationScope = getIsolationScope();

      at Object.<anonymous> (test/async/hooks.test.ts:53:14)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions