Skip to content

Commit 676f096

Browse files
committed
fix outdated runtime usage in integration tests
1 parent da50115 commit 676f096

3 files changed

Lines changed: 30 additions & 30 deletions

File tree

test/integration/http/http-test.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -166,17 +166,17 @@ function runTests (runType, t) {
166166
})
167167
})
168168

169-
t.test(`${mode} get /nodejs22.x`, t => {
169+
t.test(`${mode} get /nodejs24.x`, t => {
170170
t.plan(15)
171-
let rawPath = '/nodejs22.x'
171+
let rawPath = '/nodejs24.x'
172172
tiny.get({
173173
url: url + rawPath,
174174
}, function _got (err, result) {
175175
if (err) t.end(err)
176176
else {
177177
checkResult(t, result.body, {
178-
message: 'Hello from get /nodejs22.x (running nodejs22.x)',
179-
routeKey: 'GET /nodejs22.x',
178+
message: 'Hello from get /nodejs24.x (running nodejs24.x)',
179+
routeKey: 'GET /nodejs24.x',
180180
rawPath,
181181
pathParameters: undefined,
182182
cookies: undefined,
@@ -190,17 +190,17 @@ function runTests (runType, t) {
190190
})
191191
})
192192

193-
t.test(`${mode} get /nodejs20.x`, t => {
193+
t.test(`${mode} get /nodejs22.x`, t => {
194194
t.plan(15)
195-
let rawPath = '/nodejs20.x'
195+
let rawPath = '/nodejs22.x'
196196
tiny.get({
197197
url: url + rawPath,
198198
}, function _got (err, result) {
199199
if (err) t.end(err)
200200
else {
201201
checkResult(t, result.body, {
202-
message: 'Hello from get /nodejs20.x (running nodejs20.x)',
203-
routeKey: 'GET /nodejs20.x',
202+
message: 'Hello from get /nodejs22.x (running nodejs22.x)',
203+
routeKey: 'GET /nodejs22.x',
204204
rawPath,
205205
pathParameters: undefined,
206206
cookies: undefined,
@@ -214,17 +214,17 @@ function runTests (runType, t) {
214214
})
215215
})
216216

217-
t.test(`${mode} get /nodejs18.x`, t => {
217+
t.test(`${mode} get /nodejs20.x`, t => {
218218
t.plan(15)
219-
let rawPath = '/nodejs18.x'
219+
let rawPath = '/nodejs20.x'
220220
tiny.get({
221221
url: url + rawPath,
222222
}, function _got (err, result) {
223223
if (err) t.end(err)
224224
else {
225225
checkResult(t, result.body, {
226-
message: 'Hello from get /nodejs18.x (running nodejs18.x)',
227-
routeKey: 'GET /nodejs18.x',
226+
message: 'Hello from get /nodejs20.x (running nodejs20.x)',
227+
routeKey: 'GET /nodejs20.x',
228228
rawPath,
229229
pathParameters: undefined,
230230
cookies: undefined,

test/integration/http/httpv1-test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,16 @@ function runTests (runType, t) {
128128
})
129129
})
130130

131-
t.test(`${mode} get /nodejs22.x`, t => {
131+
t.test(`${mode} get /nodejs24.x`, t => {
132132
t.plan(16)
133-
let path = '/nodejs22.x'
133+
let path = '/nodejs24.x'
134134
tiny.get({
135135
url: url + path,
136136
}, function _got (err, result) {
137137
if (err) t.end(err)
138138
else {
139139
checkResult(t, result.body, {
140-
message: 'Hello from get /nodejs22.x (running nodejs22.x)',
140+
message: 'Hello from get /nodejs24.x (running nodejs24.x)',
141141
resource: path,
142142
path,
143143
httpMethod: 'GET',
@@ -153,16 +153,16 @@ function runTests (runType, t) {
153153
})
154154
})
155155

156-
t.test(`${mode} get /nodejs20.x`, t => {
156+
t.test(`${mode} get /nodejs22.x`, t => {
157157
t.plan(16)
158-
let path = '/nodejs20.x'
158+
let path = '/nodejs22.x'
159159
tiny.get({
160160
url: url + path,
161161
}, function _got (err, result) {
162162
if (err) t.end(err)
163163
else {
164164
checkResult(t, result.body, {
165-
message: 'Hello from get /nodejs20.x (running nodejs20.x)',
165+
message: 'Hello from get /nodejs22.x (running nodejs22.x)',
166166
resource: path,
167167
path,
168168
httpMethod: 'GET',
@@ -178,16 +178,16 @@ function runTests (runType, t) {
178178
})
179179
})
180180

181-
t.test(`${mode} get /nodejs18.x`, t => {
181+
t.test(`${mode} get /nodejs20.x`, t => {
182182
t.plan(16)
183-
let path = '/nodejs18.x'
183+
let path = '/nodejs20.x'
184184
tiny.get({
185185
url: url + path,
186186
}, function _got (err, result) {
187187
if (err) t.end(err)
188188
else {
189189
checkResult(t, result.body, {
190-
message: 'Hello from get /nodejs18.x (running nodejs18.x)',
190+
message: 'Hello from get /nodejs20.x (running nodejs20.x)',
191191
resource: path,
192192
path,
193193
httpMethod: 'GET',

test/integration/http/rest-test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,16 @@ function runTests (runType) {
128128
})
129129
})
130130

131-
test(`${mode} get /nodejs22.x`, t => {
131+
test(`${mode} get /nodejs24.x`, t => {
132132
t.plan(16)
133-
let path = '/nodejs22.x'
133+
let path = '/nodejs24.x'
134134
tiny.get({
135135
url: url + path,
136136
}, function _got (err, result) {
137137
if (err) t.end(err)
138138
else {
139139
checkResult(t, result.body, {
140-
message: 'Hello from get /nodejs22.x (running nodejs22.x)',
140+
message: 'Hello from get /nodejs24.x (running nodejs24.x)',
141141
resource: path,
142142
path,
143143
httpMethod: 'GET',
@@ -153,16 +153,16 @@ function runTests (runType) {
153153
})
154154
})
155155

156-
test(`${mode} get /nodejs20.x`, t => {
156+
test(`${mode} get /nodejs22.x`, t => {
157157
t.plan(16)
158-
let path = '/nodejs20.x'
158+
let path = '/nodejs22.x'
159159
tiny.get({
160160
url: url + path,
161161
}, function _got (err, result) {
162162
if (err) t.end(err)
163163
else {
164164
checkResult(t, result.body, {
165-
message: 'Hello from get /nodejs20.x (running nodejs20.x)',
165+
message: 'Hello from get /nodejs22.x (running nodejs22.x)',
166166
resource: path,
167167
path,
168168
httpMethod: 'GET',
@@ -178,16 +178,16 @@ function runTests (runType) {
178178
})
179179
})
180180

181-
test(`${mode} get /nodejs18.x`, t => {
181+
test(`${mode} get /nodejs20.x`, t => {
182182
t.plan(16)
183-
let path = '/nodejs18.x'
183+
let path = '/nodejs20.x'
184184
tiny.get({
185185
url: url + path,
186186
}, function _got (err, result) {
187187
if (err) t.end(err)
188188
else {
189189
checkResult(t, result.body, {
190-
message: 'Hello from get /nodejs18.x (running nodejs18.x)',
190+
message: 'Hello from get /nodejs20.x (running nodejs20.x)',
191191
resource: path,
192192
path,
193193
httpMethod: 'GET',

0 commit comments

Comments
 (0)