Skip to content

Commit a9613ac

Browse files
committed
[squash] skip environment variable encoding test on windows
1 parent 35d3c42 commit a9613ac

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/parallel/test-tls-env-bad-extra-ca.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@ fork(__filename, opts)
3232
assert.strictEqual(status, 0, 'client did not succeed in connecting');
3333
}))
3434
.on('close', common.mustCall(function() {
35-
const re = /Warning: Ignoring extra certs from.*no-such-file-exists-🐢.* load failed:.*No such file or directory/;
36-
assert(re.test(stderr), stderr);
35+
// TODO(addaleax): Make `SafeGetenv` work like `process.env`
36+
// encoding-wise
37+
if (!common.isWindows) {
38+
const re = /Warning: Ignoring extra certs from.*no-such-file-exists-🐢.* load failed:.*No such file or directory/;
39+
assert(re.test(stderr), stderr);
40+
}
3741
}))
3842
.stderr.setEncoding('utf8').on('data', function(str) {
3943
stderr += str;

0 commit comments

Comments
 (0)