Skip to content

Commit

Permalink
[squash] skip environment variable encoding test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Dec 10, 2017
1 parent 35d3c42 commit a9613ac
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/parallel/test-tls-env-bad-extra-ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ fork(__filename, opts)
assert.strictEqual(status, 0, 'client did not succeed in connecting');
}))
.on('close', common.mustCall(function() {
const re = /Warning: Ignoring extra certs from.*no-such-file-exists-🐢.* load failed:.*No such file or directory/;
assert(re.test(stderr), stderr);
// TODO(addaleax): Make `SafeGetenv` work like `process.env`
// encoding-wise
if (!common.isWindows) {
const re = /Warning: Ignoring extra certs from.*no-such-file-exists-🐢.* load failed:.*No such file or directory/;
assert(re.test(stderr), stderr);
}
}))
.stderr.setEncoding('utf8').on('data', function(str) {
stderr += str;
Expand Down

0 comments on commit a9613ac

Please sign in to comment.