Skip to content

Commit b4a8986

Browse files
committed
fix test
1 parent d7ead2b commit b4a8986

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

interpreter/customlabels/integrationtests/node_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ func TestIntegration(t *testing.T) {
6363
// is on v25 by then.
6464
"latest",
6565
"22.19.0",
66-
"20.19.5",
6766
} {
6867
name := "node-" + nodeVersion
6968
t.Run(name, func(t *testing.T) {

interpreter/customlabels/integrationtests/testdata/node-md-render/Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG NODE_VERSION=20
1+
ARG NODE_VERSION=22
22
FROM node:${NODE_VERSION}
33

44
# Install build dependencies for native modules
@@ -25,5 +25,9 @@ COPY *.js ./
2525
# Expose ports for app and gdbserver
2626
EXPOSE 80
2727

28-
# Start the application
29-
CMD ["node", "index.js"]
28+
# Start the application with conditional flag for Node < 24
29+
CMD if [ $(node -v | cut -c2- | cut -d. -f1) -lt 24 ]; then \
30+
exec node --experimental-async-context-frame index.js; \
31+
else \
32+
exec node index.js; \
33+
fi

interpreter/customlabels/integrationtests/testdata/node-md-render/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"author": "The Parca Authors",
1010
"license": "Apache-2.0",
1111
"dependencies": {
12-
"@polarsignals/custom-labels": "^0.3.1",
12+
"@polarsignals/custom-labels": "^0.3.2",
1313
"marked": "^16.1.2"
1414
}
1515
}

0 commit comments

Comments
 (0)