mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-06-26 06:32:13 +00:00
add note about why dns resolution order is necessary
This commit is contained in:
parent
6463118ebc
commit
c5f0366a5f
|
@ -10,6 +10,7 @@ interface Context extends Mocha.Context {
|
||||||
appservice?: MjolnirAppService
|
appservice?: MjolnirAppService
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Necessary for CI: Node 17+ defaults to using ipv6 first, but Github Actions does not support ipv6
|
||||||
dns.setDefaultResultOrder('ipv4first');
|
dns.setDefaultResultOrder('ipv4first');
|
||||||
|
|
||||||
describe("Test that the app service can provision a mjolnir on invite of the appservice bot", function () {
|
describe("Test that the app service can provision a mjolnir on invite of the appservice bot", function () {
|
||||||
|
|
|
@ -13,6 +13,7 @@ interface Context extends Mocha.Context {
|
||||||
moderator?: MatrixClient
|
moderator?: MatrixClient
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Necessary for CI: Node 17+ defaults to using ipv6 first, but Github Actions does not support ipv6
|
||||||
dns.setDefaultResultOrder('ipv4first');
|
dns.setDefaultResultOrder('ipv4first');
|
||||||
|
|
||||||
describe("Test that the app service can provision a mjolnir when requested from the web API", function () {
|
describe("Test that the app service can provision a mjolnir when requested from the web API", function () {
|
||||||
|
|
|
@ -3,6 +3,7 @@ import { makeMjolnir, teardownManagementRoom } from "./mjolnirSetupUtils";
|
||||||
import { register } from "prom-client";
|
import { register } from "prom-client";
|
||||||
import dns from 'node:dns';
|
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');
|
dns.setDefaultResultOrder('ipv4first');
|
||||||
|
|
||||||
// When Mjolnir starts (src/index.ts) it clobbers the config by resolving the management room
|
// When Mjolnir starts (src/index.ts) it clobbers the config by resolving the management room
|
||||||
|
|
Loading…
Reference in New Issue
Block a user