Skip to content

Commit 70073bd

Browse files
committed
fix otel tests
1 parent c9540dd commit 70073bd

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"postpublish": "lerna run --stream --concurrency 1 postpublish",
2828
"test": "lerna run --ignore \"@sentry-internal/{browser-integration-tests,e2e-tests,integration-shims,node-integration-tests,overhead-metrics}\" test",
2929
"test:unit": "lerna run --ignore \"@sentry-internal/{browser-integration-tests,e2e-tests,integration-shims,node-integration-tests,overhead-metrics}\" test:unit",
30-
"test-ci-browser": "lerna run test --ignore \"@sentry/{node,opentelemetry-node,serverless,nextjs,remix,gatsby,sveltekit}\" --ignore \"@sentry-internal/{browser-integration-tests,e2e-tests,integration-shims,node-integration-tests,overhead-metrics}\"",
30+
"test-ci-browser": "lerna run test --ignore \"@sentry/{node,node-experimental,opentelemetry-node,serverless,nextjs,remix,gatsby,sveltekit}\" --ignore \"@sentry-internal/{browser-integration-tests,e2e-tests,integration-shims,node-integration-tests,overhead-metrics}\"",
3131
"test-ci-node": "ts-node ./scripts/node-unit-tests.ts",
3232
"test:update-snapshots": "lerna run test:update-snapshots",
3333
"yalc:publish": "lerna run yalc:publish"

packages/opentelemetry-node/test/spanprocessor.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ describe('SentrySpanProcessor', () => {
7171
}
7272

7373
it('creates a transaction', async () => {
74-
const startTimestampMs = 1667381672875;
75-
const endTimestampMs = 1667381672309;
74+
const startTimestampMs = 1667381672309;
75+
const endTimestampMs = 1667381672875;
7676
const startTime = otelNumberToHrtime(startTimestampMs);
7777
const endTime = otelNumberToHrtime(endTimestampMs);
7878

@@ -93,8 +93,8 @@ describe('SentrySpanProcessor', () => {
9393
});
9494

9595
it('creates a child span if there is a running transaction', () => {
96-
const startTimestampMs = 1667381672875;
97-
const endTimestampMs = 1667381672309;
96+
const startTimestampMs = 1667381672309;
97+
const endTimestampMs = 1667381672875;
9898
const startTime = otelNumberToHrtime(startTimestampMs);
9999
const endTime = otelNumberToHrtime(endTimestampMs);
100100

@@ -176,7 +176,7 @@ describe('SentrySpanProcessor', () => {
176176
'service.name': 'test-service',
177177
'telemetry.sdk.language': 'nodejs',
178178
'telemetry.sdk.name': 'opentelemetry',
179-
'telemetry.sdk.version': '1.7.0',
179+
'telemetry.sdk.version': '1.15.0',
180180
},
181181
},
182182
});
@@ -201,7 +201,7 @@ describe('SentrySpanProcessor', () => {
201201
'service.name': 'test-service',
202202
'telemetry.sdk.language': 'nodejs',
203203
'telemetry.sdk.name': 'opentelemetry',
204-
'telemetry.sdk.version': '1.7.0',
204+
'telemetry.sdk.version': '1.15.0',
205205
},
206206
},
207207
});

0 commit comments

Comments
 (0)