Skip to content

Commit f6a1eae

Browse files
committed
update test
1 parent f3c3386 commit f6a1eae

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/tests

dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/tests/events.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ test('Multiple OnEvent decorators', async () => {
8686

8787
expect(firstTx).toBeDefined();
8888
expect(secondTx).toBeDefined();
89-
// With isolation scope forking, tags set in event handlers should NOT leak onto the root HTTP transaction
89+
90+
// Tags should be on the event handler transactions, not the root HTTP transaction
91+
expect(firstTx.tags?.['test-first'] || firstTx.tags?.['test-second']).toBe(true);
92+
expect(secondTx.tags?.['test-first'] || secondTx.tags?.['test-second']).toBe(true);
9093
expect(rootTx.tags?.['test-first']).toBeUndefined();
9194
expect(rootTx.tags?.['test-second']).toBeUndefined();
9295
});

0 commit comments

Comments
 (0)