Skip to content

Commit 5462c2b

Browse files
committed
fix more test
1 parent 99d0bda commit 5462c2b

File tree

1 file changed

+6
-2
lines changed
  • dev-packages/browser-integration-tests/suites/replay/dsc

1 file changed

+6
-2
lines changed

dev-packages/browser-integration-tests/suites/replay/dsc/test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,13 @@ sentryTest('should add replay_id to error DSC while replay is active', async ({
285285
expect(error2Header.trace).toBeDefined();
286286
expect(error2Header.trace).toEqual({
287287
environment: 'production',
288-
sample_rate: '1',
289288
trace_id: expect.any(String),
290289
public_key: 'public',
291-
sampled: 'true',
290+
...(hasTracing
291+
? {
292+
sample_rate: '1',
293+
sampled: 'true',
294+
}
295+
: {}),
292296
});
293297
});

0 commit comments

Comments
 (0)