diff --git a/test/test-span-data.ts b/test/test-span-data.ts index 738814979..1acb80ddd 100644 --- a/test/test-span-data.ts +++ b/test/test-span-data.ts @@ -71,7 +71,7 @@ describe('SpanData', () => { const spanData = new CommonSpanData(trace, 'name', '400', 0); assert.strictEqual(spanData.span.name, 'name'); assert.strictEqual(spanData.span.parentSpanId, '400'); - assert.ok(spanData.span.spanId.match(/[0-9A-F]{12}/)); + assert.ok(spanData.span.spanId.match(/^[0-9]+$/)); }); it('creates spans with unique span IDs', () => {