Skip to content

Commit b5dd9d8

Browse files
committed
test: fix node.js integration tests
1 parent a1f4a3e commit b5dd9d8

File tree

2 files changed

+11
-11
lines changed
  • dev-packages/node-integration-tests/suites/express

2 files changed

+11
-11
lines changed

dev-packages/node-integration-tests/suites/express/tracing-experimental/test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ conditionalTest({ min: 14 })('express tracing experimental', () => {
1818
trace_id: expect.any(String),
1919
data: {
2020
url: expect.stringMatching(/\/test\/express$/),
21-
'http.response.status_code': 200,
21+
'http.response.status_code': '200',
2222
},
2323
op: 'http.server',
2424
status: 'ok',
2525
tags: {
26-
'http.status_code': 200,
26+
'http.status_code': '200',
2727
},
2828
},
2929
},
@@ -63,7 +63,7 @@ conditionalTest({ min: 14 })('express tracing experimental', () => {
6363
op: 'http.server',
6464
status: 'ok',
6565
tags: {
66-
'http.status_code': 200,
66+
'http.status_code': '200',
6767
},
6868
},
6969
},
@@ -90,12 +90,12 @@ conditionalTest({ min: 14 })('express tracing experimental', () => {
9090
span_id: expect.any(String),
9191
data: {
9292
url: expect.stringMatching(`/test/${segment}$`),
93-
'http.response.status_code': 200,
93+
'http.response.status_code': '200',
9494
},
9595
op: 'http.server',
9696
status: 'ok',
9797
tags: {
98-
'http.status_code': 200,
98+
'http.status_code': '200',
9999
},
100100
},
101101
},
@@ -130,12 +130,12 @@ conditionalTest({ min: 14 })('express tracing experimental', () => {
130130
span_id: expect.any(String),
131131
data: {
132132
url: expect.stringMatching(`/test/${segment}$`),
133-
'http.response.status_code': 200,
133+
'http.response.status_code': '200',
134134
},
135135
op: 'http.server',
136136
status: 'ok',
137137
tags: {
138-
'http.status_code': 200,
138+
'http.status_code': '200',
139139
},
140140
},
141141
},

dev-packages/node-integration-tests/suites/express/tracing/test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test('should create and send transactions for Express routes and spans for middl
1515
trace_id: expect.any(String),
1616
data: {
1717
url: '/test/express',
18-
'http.response.status_code': 200,
18+
'http.response.status_code': '200',
1919
},
2020
op: 'http.server',
2121
status: 'ok',
@@ -51,7 +51,7 @@ test('should set a correct transaction name for routes specified in RegEx', done
5151
span_id: expect.any(String),
5252
data: {
5353
url: '/test/regex',
54-
'http.response.status_code': 200,
54+
'http.response.status_code': '200',
5555
},
5656
op: 'http.server',
5757
status: 'ok',
@@ -83,7 +83,7 @@ test.each([['array1'], ['array5']])(
8383
span_id: expect.any(String),
8484
data: {
8585
url: `/test/${segment}`,
86-
'http.response.status_code': 200,
86+
'http.response.status_code': '200',
8787
},
8888
op: 'http.server',
8989
status: 'ok',
@@ -123,7 +123,7 @@ test.each([
123123
span_id: expect.any(String),
124124
data: {
125125
url: `/test/${segment}`,
126-
'http.response.status_code': 200,
126+
'http.response.status_code': '200',
127127
},
128128
op: 'http.server',
129129
status: 'ok',

0 commit comments

Comments
 (0)