Source: node-proxy-agents
Version: 0~2023071921-1
Severity: serious


Hello, looks like the package tries to do calls to internet during build.
+ jest --testTimeout 50000 --env node --moduleDirectories node_modules 
--testRegex test/dnsDomainIs.test.ts test/dnsDomainLevels.test.ts 
test/dnsResolve.test.ts test/isInNet.test.ts test/isPlainHostName.test.ts 
test/isResolvable.test.ts test/localHostOrDomainIs.test.ts 
test/shExpMatch.test.ts test/timeRange.test.ts
PASS test/shExpMatch.test.ts
PASS test/timeRange.test.ts
PASS test/localHostOrDomainIs.test.ts
(node:8627) [DEP0118] DeprecationWarning: The provided hostname "null" is not a 
valid hostname, and is supported in the dns module solely for compatibility.
(Use `node --trace-deprecation ...` to show where the warning was created)
PASS test/isInNet.test.ts
FAIL test/dnsResolve.test.ts
  ● dnsResolve(host) › should return `true` for "www.netscape.com"

    assert(received)

    Expected value to be equal to:
      true
    Received:
      false

      12 |                      const res = await dnsResolve(input);
      13 |                      if (expected) {
    > 14 |                           assert(typeof res === 'string');
         |                                    ^
      15 |                              expect(isIP(res)).toEqual(4);
      16 |                      } else {
      17 |                              expect(res).toBeNull();

      at test/dnsResolve.test.ts:14:11

PASS test/dnsDomainIs.test.ts
FAIL test/isResolvable.test.ts
  ● isResolvable(host) › should return `true` for "www.netscape.com"

    expect(received).toEqual(expected) // deep equality

    Expected: true
    Received: false

       9 |              async ({ input, expected }) => {
      10 |                      const res = await isResolvable(input);
    > 11 |                   expect(res).toEqual(expected);
         |                                  ^
      12 |              }
      13 |      );
      14 | });

      at test/isResolvable.test.ts:11:16

PASS test/isPlainHostName.test.ts
PASS test/dnsDomainLevels.test.ts

Test Suites: 2 failed, 7 passed, 9 total
Tests:       2 failed, 37 passed, 39 total
Snapshots:   0 total
Time:        4.549 s
Ran all test suites.
dh_auto_test: error: cd ./packages/pac-resolver && sh -ex 
../../debian/nodejs/packages/pac-resolver/test returned exit code 1
make: *** [debian/rules:10: binary] Error 25


Gianfranco

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to