Move integration test config file

it now lives in config/ because it was being loaded there by the tests before it could be copied to there from the test directory
This commit is contained in:
gnuxie
2021-09-30 16:02:58 +01:00
parent 776c1fe063
commit 4d46d4dd34
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -182,6 +182,6 @@ mx-tester down
### Running integration tests
The integration tests can be run with `yarn test:integration`.
The config that the tests use is in `test/integration/config/harness.yaml`
The config that the tests use is in `config/harness.yaml`
and by default this is configured to work with the server specified in `mx-tester.yml`,
but you can configure it however you like to run against your own setup.
but you can configure it however you like to run against your own setup.
@@ -1,3 +1,6 @@
# This configuration file is for the integration tests run by yarn:integration.
# Editing this will do nothing and you shouldn't use it as a template.
# For a template use default.yaml
# Where the homeserver is located (client-server URL). This should point at
# pantalaimon if you're using that.
homeserverUrl: "http://localhost:9999"
-3
View File
@@ -23,8 +23,6 @@ import {
} from "matrix-bot-sdk";
import { Mjolnir} from '../../src/Mjolnir';
import config from "../../src/config";
import * as path from 'path';
import * as fs from 'fs/promises';
import { registerUser } from "./clientHelper";
/**
@@ -47,7 +45,6 @@ export async function ensureAliasedRoomExists(client: MatrixClient, alias: strin
}
async function configureMjolnir() {
await fs.copyFile(path.join(__dirname, 'config', 'harness.yaml'), path.join(__dirname, '../../config/harness.yaml'));
await registerUser('mjolnir', 'mjolnir', 'mjolnir', true).catch(e => {
if (e.isAxiosError && e.response.data.errcode === 'M_USER_IN_USE') {
console.log('mjolnir already registered, skipping');