Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit 5def451

Browse files
authored
fix(tests): Hex value assertion was used on decimal string (#1271)
1 parent 3f55458 commit 5def451

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test-span-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ describe('SpanData', () => {
7171
const spanData = new CommonSpanData(trace, 'name', '400', 0);
7272
assert.strictEqual(spanData.span.name, 'name');
7373
assert.strictEqual(spanData.span.parentSpanId, '400');
74-
assert.ok(spanData.span.spanId.match(/[0-9A-F]{12}/));
74+
assert.ok(spanData.span.spanId.match(/^[0-9]+$/));
7575
});
7676

7777
it('creates spans with unique span IDs', () => {

0 commit comments

Comments
 (0)