Skip to content

Commit 93b6154

Browse files
committed
fix test
1 parent a6b6c00 commit 93b6154

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/opentelemetry/test/trace.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,8 +1521,8 @@ describe('continueTrace', () => {
15211521
const span = getActiveSpan()!;
15221522
expect(span).toBeDefined();
15231523
expect(spanToJSON(span)).toEqual({
1524-
span_id: '',
1525-
trace_id: expect.any(String),
1524+
span_id: expect.stringMatching(/^[0-9a-f]{16}$/),
1525+
trace_id: expect.stringMatching(/^[0-9a-f]{32}$/),
15261526
});
15271527
expect(getSamplingDecision(span.spanContext())).toBe(undefined);
15281528
expect(spanIsSampled(span)).toBe(false);

0 commit comments

Comments
 (0)