Skip to content

Commit

Permalink
add note about why dns resolution order is necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay committed Nov 14, 2023
1 parent 6463118 commit c5f0366
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/appservice/integration/provisionTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ interface Context extends Mocha.Context {
appservice?: MjolnirAppService
}

// Necessary for CI: Node 17+ defaults to using ipv6 first, but Github Actions does not support ipv6
dns.setDefaultResultOrder('ipv4first');

describe("Test that the app service can provision a mjolnir on invite of the appservice bot", function () {
Expand Down
1 change: 1 addition & 0 deletions test/appservice/integration/webAPITest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ interface Context extends Mocha.Context {
moderator?: MatrixClient
}

// Necessary for CI: Node 17+ defaults to using ipv6 first, but Github Actions does not support ipv6
dns.setDefaultResultOrder('ipv4first');

describe("Test that the app service can provision a mjolnir when requested from the web API", function () {
Expand Down
1 change: 1 addition & 0 deletions test/integration/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { makeMjolnir, teardownManagementRoom } from "./mjolnirSetupUtils";
import { register } from "prom-client";
import dns from 'node:dns';

// Necessary for CI: Node 17+ defaults to using ipv6 first, but Github Actions does not support ipv6
dns.setDefaultResultOrder('ipv4first');

// When Mjolnir starts (src/index.ts) it clobbers the config by resolving the management room
Expand Down

0 comments on commit c5f0366

Please sign in to comment.