Skip to content

Commit aae800a

Browse files
authored
bump node in tests to node 22 since node14 is quite old (#216)
* bump node in tests to node 22 since node14 is quite old * change test contsants
1 parent e47f9b8 commit aae800a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

examples/prepare-job.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"state": {},
55
"args": {
66
"container": {
7-
"image": "node:14.16",
7+
"image": "node:22",
88
"workingDirectory": "/__w/repo/repo",
99
"createOptions": "--cpus 1",
1010
"environmentVariables": {

examples/run-container-step.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
},
1111
"args": {
12-
"image": "node:14.16",
12+
"image": "node:22",
1313
"dockerfile": null,
1414
"entryPointArgs": [
1515
"-e",

packages/k8s/tests/k8s-utils-test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ metadata:
394394
spec:
395395
containers:
396396
- name: test
397-
image: node:14.16
397+
image: node:22
398398
- name: job
399399
image: ubuntu:latest`
400400
)
@@ -407,7 +407,7 @@ spec:
407407

408408
it('should merge container spec', () => {
409409
const base = {
410-
image: 'node:14.16',
410+
image: 'node:22',
411411
name: 'test',
412412
env: [
413413
{
@@ -462,7 +462,7 @@ spec:
462462
const base = {
463463
containers: [
464464
{
465-
image: 'node:14.16',
465+
image: 'node:22',
466466
name: 'test',
467467
env: [
468468
{

packages/k8s/tests/prepare-job-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ describe('Prepare job', () => {
125125

126126
// job container
127127
expect(got.spec?.containers[0].name).toBe(JOB_CONTAINER_NAME)
128-
expect(got.spec?.containers[0].image).toBe('node:14.16')
128+
expect(got.spec?.containers[0].image).toBe('node:22')
129129
expect(got.spec?.containers[0].command).toEqual(['sh'])
130130
expect(got.spec?.containers[0].args).toEqual(['-c', 'sleep 50'])
131131

0 commit comments

Comments
 (0)