Skip to content

Commit c7c734d

Browse files
committed
fixup: ci
1 parent feb4297 commit c7c734d

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

test/common/index.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const {
2020
localIPv6Hosts,
2121
opensslCli,
2222
PIPE,
23+
hasCrypto,
2324
hasIPv6,
2425
childShouldThrowAndAbort,
2526
createZeroFilledFile,
@@ -65,6 +66,7 @@ export {
6566
localIPv6Hosts,
6667
opensslCli,
6768
PIPE,
69+
hasCrypto,
6870
hasIPv6,
6971
childShouldThrowAndAbort,
7072
createZeroFilledFile,

test/es-module/test-esm-dynamic-import.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ function expectFsNamespace(result) {
5959
'ERR_UNSUPPORTED_ESM_URL_SCHEME');
6060
if (common.isWindows) {
6161
const msg =
62-
'Only file and data URLs are supported by the default ESM loader. ' +
63-
'On Windows, absolute paths must be valid file:// URLs. ' +
62+
'Only URLs with a scheme in: file, data are supported by the default ' +
63+
'ESM loader. On Windows, absolute paths must be valid file:// URLs. ' +
6464
"Received protocol 'c:'";
6565
expectModuleError(import('C:\\example\\foo.mjs'),
6666
'ERR_UNSUPPORTED_ESM_URL_SCHEME',

test/es-module/test-http-imports.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Flags: --experimental-network-imports --dns-result-order=ipv4first
2-
import '../common/index.mjs';
2+
import * as common from '../common/index.mjs';
33
import { path, readKey } from '../common/fixtures.mjs';
44
import { pathToFileURL } from 'url';
55
import assert from 'assert';
@@ -8,6 +8,9 @@ import https from 'https';
88
import os from 'os';
99
import util from 'util';
1010

11+
if (!common.hasCrypto)
12+
common.skip('missing crypto');
13+
1114
const createHTTPServer = http.createServer;
1215

1316
// Needed to deal w/ test certs

0 commit comments

Comments
 (0)