Skip to content

Commit

Permalink
fix(tests): Hex value assertion was used on decimal string (#1271)
Browse files Browse the repository at this point in the history
  • Loading branch information
kintel authored May 29, 2020
1 parent 3f55458 commit 5def451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-span-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 5def451

Please sign in to comment.