Skip to content

Commit

Permalink
Use Identity Server v2 API for tests (#24086)
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live authored Jan 3, 2023
1 parent 9a55019 commit 805c90a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/app-tests/loading-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ describe("loading:", function () {

// Pass the liveliness checks
httpBackend.when("GET", "/versions").respond(200, { versions: ["r0.4.0"] });
httpBackend.when("GET", "/api/v1").respond(200, {});
httpBackend.when("GET", "/_matrix/identity/v2").respond(200, {});

return sleep(1)
.then(async () => {
Expand Down Expand Up @@ -274,7 +274,7 @@ describe("loading:", function () {

// Pass the liveliness checks
httpBackend.when("GET", "/versions").respond(200, { versions: ["r0.4.0"] });
httpBackend.when("GET", "/api/v1").respond(200, {});
httpBackend.when("GET", "/_matrix/identity/v2").respond(200, {});

return awaitLoginComponent(matrixChat)
.then(async () => {
Expand All @@ -286,7 +286,7 @@ describe("loading:", function () {
// the only outstanding request should be a GET /login
// (in particular there should be no /register request for
// guest registration).
const allowedRequests = ["/_matrix/client/r0/login", "/versions", "/api/v1"];
const allowedRequests = ["/_matrix/client/r0/login", "/versions", "/_matrix/identity/v2"];
for (const req of httpBackend.requests) {
if (req.method === "GET" && allowedRequests.find((p) => req.path.endsWith(p))) {
continue;
Expand Down

0 comments on commit 805c90a

Please sign in to comment.