Skip to content

Commit ee4de6c

Browse files
committed
squash: test http2.connect() only if crypto is present
1 parent 22c521b commit ee4de6c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/parallel/test-util-promisify-custom-names.mjs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import '../common/index.mjs';
1+
import { hasCrypto } from '../common/index.mjs';
22
import assert from 'node:assert';
33
import { promisify } from 'node:util';
44

@@ -50,7 +50,9 @@ assert.strictEqual(
5050
'execFile'
5151
);
5252

53-
assert.strictEqual(
54-
promisify(http2.connect).name,
55-
'connect'
56-
);
53+
if (hasCrypto) {
54+
assert.strictEqual(
55+
promisify(http2.connect).name,
56+
'connect'
57+
);
58+
}

0 commit comments

Comments
 (0)