Fix ipWhiteList test (#3181)

Port change seems to fix a timing issue.
This commit is contained in:
Kristjan ESPERANTO
2023-09-06 23:53:02 +02:00
committed by GitHub
parent ef20fe2d11
commit 9d49196e69
4 changed files with 7 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ describe("ipWhitelist directive configuration", () => {
});
it("should return 403", async () => {
const res = await helpers.fetch("http://localhost:8080");
const res = await helpers.fetch("http://localhost:8181");
expect(res.status).toBe(403);
});
});
@@ -24,7 +24,7 @@ describe("ipWhitelist directive configuration", () => {
});
it("should return 200", async () => {
const res = await helpers.fetch("http://localhost:8080");
const res = await helpers.fetch("http://localhost:8282");
expect(res.status).toBe(200);
});
});