Skip to content

Commit 2cef16e

Browse files
authored
fix: 更新 node 到 22 (#1486)
1 parent 7c23814 commit 2cef16e

6 files changed

Lines changed: 15 additions & 10 deletions

File tree

.changeset/dull-monkeys-thank.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@scow/test-adapter": patch
3+
---
4+
5+
更新 node 版本

apps/mis-server/tests/admin/updateBlockStatus.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ it("update block status with whitelist accounts", async () => {
6565
accountName: data.blockedAccountB.accountName,
6666
comment: "test",
6767
operatorId: "123",
68-
expirationTime:new Date("2025-01-01T00:00:00.000Z").toISOString(),
68+
expirationTime:new Date("2125-01-01T00:00:00.000Z").toISOString(),
6969
});
7070

7171
const blockedData = await updateBlockStatusInSlurm(

apps/mis-server/tests/admin/whitelist.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ it("unblocks account when added to whitelist", async () => {
6060
accountName: a.accountName,
6161
comment: "test",
6262
operatorId: "123",
63-
expirationTime:new Date("2025-01-01T00:00:00.000Z").toISOString(),
63+
expirationTime:new Date("2125-01-01T00:00:00.000Z").toISOString(),
6464
});
6565

6666
await reloadEntity(em, a);
@@ -74,7 +74,7 @@ it("blocks account when it is dewhitelisted and balance is < 0", async () => {
7474
account: a,
7575
comment: "",
7676
operatorId: "123",
77-
expirationTime:new Date("2025-01-01T00:00:00.000Z"),
77+
expirationTime:new Date("2125-01-01T00:00:00.000Z"),
7878
});
7979

8080
await em.persistAndFlush(whitelist);
@@ -105,7 +105,7 @@ it("blocks account when it is dewhitelisted and balance is = 0", async () => {
105105
account: a,
106106
comment: "",
107107
operatorId: "123",
108-
expirationTime:new Date("2025-01-01T00:00:00.000Z"),
108+
expirationTime:new Date("2125-01-01T00:00:00.000Z"),
109109
});
110110

111111
await em.persistAndFlush(whitelist);
@@ -138,7 +138,7 @@ it("charges user but don't block account if account is whitelist", async () => {
138138
account : a,
139139
comment: "123",
140140
operatorId: "123",
141-
expirationTime:new Date("2025-01-01T00:00:00.000Z"),
141+
expirationTime:new Date("2125-01-01T00:00:00.000Z"),
142142
}));
143143

144144
await em.flush();
@@ -168,7 +168,7 @@ it("get whitelisted accounts", async () => {
168168
comment: "",
169169
operatorId: "123",
170170
time: new Date("2023-01-01T00:00:00.000Z"),
171-
expirationTime:new Date("2025-01-01T00:00:00.000Z"),
171+
expirationTime:new Date("2125-01-01T00:00:00.000Z"),
172172
});
173173

174174
await em.persistAndFlush(whitelist);
@@ -191,7 +191,7 @@ it("get whitelisted accounts", async () => {
191191
"comment": "",
192192
"addTime": "2023-01-01T00:00:00.000Z",
193193
balance: decimalToMoney(data.accountA.balance),
194-
"expirationTime":"2025-01-01T00:00:00.000Z",
194+
"expirationTime":"2125-01-01T00:00:00.000Z",
195195
},
196196
]);
197197

dev/test-adapter/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# See the Mulan PSL v2 for more details.
1010

1111

12-
FROM node:iron-alpine@sha256:558a6416c5e0da2cb0f19bbc766f0a76825a7e76484bc211af0bb1cedbb7ca1e AS base
12+
FROM node:22-alpine@sha256:9bef0ef1e268f60627da9ba7d7605e8831d5b56ad07487d24d1aa386336d1944 AS base
1313

1414
RUN apk update && apk add libc6-compat python3 make gcc g++ git
1515

docker/Dockerfile.docs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# See the Mulan PSL v2 for more details.
1010

1111

12-
FROM node:iron-alpine@sha256:558a6416c5e0da2cb0f19bbc766f0a76825a7e76484bc211af0bb1cedbb7ca1e AS base
12+
FROM node:22-alpine@sha256:9bef0ef1e268f60627da9ba7d7605e8831d5b56ad07487d24d1aa386336d1944 AS base
1313

1414
RUN apk update && apk add libc6-compat python3 make gcc g++ git
1515

docker/Dockerfile.scow

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# See the Mulan PSL v2 for more details.
1010

1111

12-
FROM node:iron-alpine@sha256:558a6416c5e0da2cb0f19bbc766f0a76825a7e76484bc211af0bb1cedbb7ca1e AS base
12+
FROM node:22-alpine@sha256:9bef0ef1e268f60627da9ba7d7605e8831d5b56ad07487d24d1aa386336d1944 AS base
1313

1414
RUN apk update
1515

0 commit comments

Comments
 (0)