Skip to content

Commit

Permalink
test: fix failing integration tests on node@18
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored and glasser committed Apr 28, 2022
1 parent baaac91 commit 494c15b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ workflows:
- "14"
- "16"
- "17"
- "18"
- "Check for FIXM\x45"
- Prettier
- Spell check
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,8 @@ export function defineIntegrationTestSuiteApolloServerTests(
const { family, address, port } =
this.server.address() as AddressInfo;

if (family !== 'IPv4') {
// @ts-expect-error until https://github.com/DefinitelyTyped/DefinitelyTyped/pull/60042
if (family !== 'IPv4' && family !== 4) {
throw new Error(`The family was unexpectedly ${family}.`);
}
return new URL(`http://${address}:${port}`).toString();
Expand Down Expand Up @@ -1959,7 +1960,8 @@ export function defineIntegrationTestSuiteApolloServerTests(

const { family, address, port } =
fakeUsageReportingServer.address() as AddressInfo;
if (family !== 'IPv4') {
// @ts-expect-error until https://github.com/DefinitelyTyped/DefinitelyTyped/pull/60042
if (family !== 'IPv4' && family !== 4) {
throw new Error(`The family was unexpectedly ${family}.`);
}

Expand Down

0 comments on commit 494c15b

Please sign in to comment.