Skip to content

Commit 50a66ff

Browse files
committed
fix more tests
1 parent 4ddd162 commit 50a66ff

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/core/test/lib/utils/spanUtils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ describe('spanToJSON', () => {
300300
span_id: 'SPAN-1',
301301
trace_id: 'TRACE-1',
302302
start_timestamp: 0,
303-
data: {}
303+
data: {},
304304
});
305305
});
306306
});

packages/opentelemetry/test/trace.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,6 +1565,8 @@ describe('continueTrace', () => {
15651565
expect(spanToJSON(span)).toEqual({
15661566
span_id: '1121201211212012',
15671567
trace_id: '12312012123120121231201212312012',
1568+
data: {},
1569+
start_timestamp: 0,
15681570
});
15691571
expect(getSamplingDecision(span.spanContext())).toBe(false);
15701572
expect(spanIsSampled(span)).toBe(false);
@@ -1596,6 +1598,8 @@ describe('continueTrace', () => {
15961598
expect(spanToJSON(span)).toEqual({
15971599
span_id: '1121201211212012',
15981600
trace_id: '12312012123120121231201212312012',
1601+
data: {},
1602+
start_timestamp: 0,
15991603
});
16001604
expect(getSamplingDecision(span.spanContext())).toBe(true);
16011605
expect(spanIsSampled(span)).toBe(true);
@@ -1630,6 +1634,8 @@ describe('continueTrace', () => {
16301634
expect(spanToJSON(span)).toEqual({
16311635
span_id: '1121201211212012',
16321636
trace_id: '12312012123120121231201212312012',
1637+
data: {},
1638+
start_timestamp: 0,
16331639
});
16341640
expect(getSamplingDecision(span.spanContext())).toBe(true);
16351641
expect(spanIsSampled(span)).toBe(true);

0 commit comments

Comments
 (0)