diff --git a/tests/configs/empty_ipWhiteList.js b/tests/configs/empty_ipWhiteList.js index a25ae625e8..f031b3b74f 100644 --- a/tests/configs/empty_ipWhiteList.js +++ b/tests/configs/empty_ipWhiteList.js @@ -4,7 +4,8 @@ * MIT Licensed. */ let config = { - ipWhitelist: [] + ipWhitelist: [], + port: 8282 }; /*************** DO NOT EDIT THE LINE BELOW ***************/ diff --git a/tests/configs/noIpWhiteList.js b/tests/configs/noIpWhiteList.js index 4e26b1a06c..09e74061a2 100644 --- a/tests/configs/noIpWhiteList.js +++ b/tests/configs/noIpWhiteList.js @@ -4,7 +4,8 @@ * MIT Licensed. */ let config = require(`${process.cwd()}/tests/configs/default.js`).configFactory({ - ipWhitelist: ["x.x.x.x"] + ipWhitelist: ["x.x.x.x"], + port: 8181 }); /*************** DO NOT EDIT THE LINE BELOW ***************/ diff --git a/tests/e2e/ipWhitelist_spec.js b/tests/e2e/ipWhitelist_spec.js index 54084c3b42..978b4b609f 100644 --- a/tests/e2e/ipWhitelist_spec.js +++ b/tests/e2e/ipWhitelist_spec.js @@ -10,7 +10,7 @@ describe("ipWhitelist directive configuration", () => { }); it("should return 403", async () => { - const res = await fetch("http://localhost:8080"); + const res = await fetch("http://localhost:8181"); expect(res.status).toBe(403); }); }); @@ -25,7 +25,7 @@ describe("ipWhitelist directive configuration", () => { }); it("should return 200", async () => { - const res = await fetch("http://localhost:8080"); + const res = await fetch("http://localhost:8282"); expect(res.status).toBe(200); }); });