mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
test: adapt test-blocklist to libuv 1.53+
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
1 parent
2ccfd65fb5
commit
6d74369c2b
1 file changed
+3
-1
@@ -888,7 +888,9 @@ const util = require('util');
|
||||
const mixed = 'ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255';
|
||||
blockList.addAddress(mixed, 'ipv6');
|
||||
assert.strictEqual(blockList.check(mixed, 'ipv6'), true);
|
||||
assert.strictEqual(blockList.check(`${mixed}%${'z'.repeat(200)}`, 'ipv6'), false);
|
||||
assert.strictEqual(blockList.check(`${mixed}%${'z'.repeat(200)}`, 'ipv6'),
|
||||
// This returns true as of libuv 1.53.0 (there are no 0.53.0 version)
|
||||
(([major, minor]) => major > 1 || minor > 52)(process.versions.uv.split('.')));
|
||||
}
|
||||
|
||||
// check() family parameter is case-insensitive.
|
||||
|
||||
Reference in new issue
Block a user