Skip to content

Commit ca3e005

Browse files
committed
test: prevent extraneous HOSTNAME substitution in test-runner-output
1 parent 53abd1a commit ca3e005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-runner-output.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function replaceJunitDuration(str) {
3737
return str
3838
.replaceAll(/time="[0-9.]+"/g, 'time="*"')
3939
.replaceAll(/duration_ms [0-9.]+/g, 'duration_ms *')
40-
.replaceAll(hostname(), 'HOSTNAME')
40+
.replaceAll(`hostname="${hostname()}"`, 'hostname="HOSTNAME"')
4141
.replace(stackTraceBasePath, '$3');
4242
}
4343

0 commit comments

Comments
 (0)