Skip to content

Commit 6de768d

Browse files
committed
fix e2e test
1 parent 0796c63 commit 6de768d

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

dev-packages/e2e-tests/test-applications/node-experimental-fastify-app/tests/propagation.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ test('Propagates trace for outgoing http requests', async ({ baseURL }) => {
6868
'http.user_agent': 'axios/1.6.7',
6969
'http.flavor': '1.1',
7070
'net.transport': 'ip_tcp',
71-
'net.host.ip': '127.0.0.1',
71+
'net.host.ip': expect.any(String),
7272
'net.host.port': expect.any(Number),
73-
'net.peer.ip': '127.0.0.1',
73+
'net.peer.ip': expect.any(String),
7474
'net.peer.port': expect.any(Number),
7575
'http.status_code': 200,
7676
'http.status_text': 'OK',
@@ -103,9 +103,9 @@ test('Propagates trace for outgoing http requests', async ({ baseURL }) => {
103103
'http.target': '/test-inbound-headers',
104104
'http.flavor': '1.1',
105105
'net.transport': 'ip_tcp',
106-
'net.host.ip': '127.0.0.1',
106+
'net.host.ip': expect.any(String),
107107
'net.host.port': expect.any(Number),
108-
'net.peer.ip': '127.0.0.1',
108+
'net.peer.ip': expect.any(String),
109109
'net.peer.port': expect.any(Number),
110110
'http.status_code': 200,
111111
'http.status_text': 'OK',
@@ -184,13 +184,13 @@ test('Propagates trace for outgoing fetch requests', async ({ baseURL }) => {
184184
'net.host.name': 'localhost',
185185
'http.method': 'GET',
186186
'http.scheme': 'http',
187-
'http.target': '/test-outgoing-http',
187+
'http.target': '/test-outgoing-fetch',
188188
'http.user_agent': 'axios/1.6.7',
189189
'http.flavor': '1.1',
190190
'net.transport': 'ip_tcp',
191-
'net.host.ip': '127.0.0.1',
191+
'net.host.ip': expect.any(String),
192192
'net.host.port': expect.any(Number),
193-
'net.peer.ip': '127.0.0.1',
193+
'net.peer.ip': expect.any(String),
194194
'net.peer.port': expect.any(Number),
195195
'http.status_code': 200,
196196
'http.status_text': 'OK',
@@ -223,9 +223,9 @@ test('Propagates trace for outgoing fetch requests', async ({ baseURL }) => {
223223
'http.target': '/test-inbound-headers',
224224
'http.flavor': '1.1',
225225
'net.transport': 'ip_tcp',
226-
'net.host.ip': '127.0.0.1',
226+
'net.host.ip': expect.any(String),
227227
'net.host.port': expect.any(Number),
228-
'net.peer.ip': '127.0.0.1',
228+
'net.peer.ip': expect.any(String),
229229
'net.peer.port': expect.any(Number),
230230
'http.status_code': 200,
231231
'http.status_text': 'OK',

dev-packages/e2e-tests/test-applications/node-experimental-fastify-app/tests/transactions.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ test('Sends an API route transaction', async ({ baseURL }) => {
2020
const transactionEvent = await pageloadTransactionEventPromise;
2121
const transactionEventId = transactionEvent.event_id;
2222

23-
console.log(JSON.stringify(transactionEvent, null, 2));
24-
2523
expect(transactionEvent.contexts?.trace).toEqual({
2624
data: {
2725
'sentry.source': 'route',
@@ -40,9 +38,9 @@ test('Sends an API route transaction', async ({ baseURL }) => {
4038
'http.user_agent': 'axios/1.6.7',
4139
'http.flavor': '1.1',
4240
'net.transport': 'ip_tcp',
43-
'net.host.ip': '127.0.0.1',
41+
'net.host.ip': expect.any(String),
4442
'net.host.port': expect.any(Number),
45-
'net.peer.ip': '127.0.0.1',
43+
'net.peer.ip': expect.any(String),
4644
'net.peer.port': expect.any(Number),
4745
'http.status_code': 200,
4846
'http.status_text': 'OK',

0 commit comments

Comments
 (0)