Skip to content

Commit

Permalink
fix test skips
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Jun 10, 2023
1 parent 83e3b71 commit 787834e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test.js
Expand Up @@ -9,22 +9,22 @@ const canTestV6 = env.CI ? platform() === 'darwin' : true;

test('IPv6 - async', async t => {
if (!canTestV6) {

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, 16)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, 18)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, 20)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-22.04, 16)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, 16)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-22.04, 18)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, 18)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-22.04, 20)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, 20)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (macOS-latest, 16)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-22.04, 16)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (macOS-latest, 18)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-22.04, 18)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (macOS-latest, 20)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-22.04, 20)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (windows-latest, 16)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (macOS-latest, 16)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (macOS-latest, 18)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (windows-latest, 18)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (macOS-latest, 20)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (windows-latest, 20)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (windows-latest, 16)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (windows-latest, 18)

Unexpected negated condition.

Check failure on line 11 in test.js

View workflow job for this annotation

GitHub Actions / test (windows-latest, 20)

Unexpected negated condition.
return;
t.true(isIPv6(await internalIpV6()));
} else {
t.is(ip, undefined);

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, 16)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, 18)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, 20)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-22.04, 16)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, 16)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-22.04, 18)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, 18)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-22.04, 20)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, 20)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (macOS-latest, 16)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-22.04, 16)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (macOS-latest, 18)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-22.04, 18)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (macOS-latest, 20)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-22.04, 20)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (windows-latest, 16)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (macOS-latest, 16)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (macOS-latest, 18)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (windows-latest, 18)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (macOS-latest, 20)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (windows-latest, 20)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (windows-latest, 16)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (windows-latest, 18)

'ip' is not defined.

Check failure on line 14 in test.js

View workflow job for this annotation

GitHub Actions / test (windows-latest, 20)

'ip' is not defined.
}

t.true(isIPv6(await internalIpV6()));
});

test('IPv4 - async', async t => {
t.true(isIPv4(await internalIpV4()));
});

test('IPv6 - sync', t => {
if (!canTestV6) {
return;
if (canTestV6) {
t.true(isIPv6(internalIpV6Sync()));
} else {
t.is(ip, undefined);

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, 16)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, 18)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, 20)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-22.04, 16)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, 16)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-22.04, 18)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, 18)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-22.04, 20)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, 20)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (macOS-latest, 16)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-22.04, 16)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (macOS-latest, 18)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-22.04, 18)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (macOS-latest, 20)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-22.04, 20)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (windows-latest, 16)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (macOS-latest, 16)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (macOS-latest, 18)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (windows-latest, 18)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (macOS-latest, 20)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (windows-latest, 20)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (windows-latest, 16)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (windows-latest, 18)

'ip' is not defined.

Check failure on line 26 in test.js

View workflow job for this annotation

GitHub Actions / test (windows-latest, 20)

'ip' is not defined.
}

t.true(isIPv6(internalIpV6Sync()));
});

test('IPv4 - sync', t => {
Expand Down

0 comments on commit 787834e

Please sign in to comment.