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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 4 deletions

View File

@ -32,6 +32,7 @@ _This release is scheduled to be released on 2023-10-01._
- Fix undefined formatTime method in clock module (#3143) - Fix undefined formatTime method in clock module (#3143)
- Fix clientonly startup fails after async added (#3151) - Fix clientonly startup fails after async added (#3151)
- Fix electron width/heigth when using xrandr under bullseye - Fix electron width/heigth when using xrandr under bullseye
- Fix ipWhiteList test (#3179)
## [2.24.0] - 2023-07-01 ## [2.24.0] - 2023-07-01

View File

@ -4,7 +4,8 @@
* MIT Licensed. * MIT Licensed.
*/ */
let config = require(`${process.cwd()}/tests/configs/default.js`).configFactory({ let config = require(`${process.cwd()}/tests/configs/default.js`).configFactory({
ipWhitelist: [] ipWhitelist: [],
port: 8282
}); });
/*************** DO NOT EDIT THE LINE BELOW ***************/ /*************** DO NOT EDIT THE LINE BELOW ***************/

View File

@ -4,7 +4,8 @@
* MIT Licensed. * MIT Licensed.
*/ */
let config = require(`${process.cwd()}/tests/configs/default.js`).configFactory({ 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 ***************/ /*************** DO NOT EDIT THE LINE BELOW ***************/

View File

@ -10,7 +10,7 @@ describe("ipWhitelist directive configuration", () => {
}); });
it("should return 403", async () => { 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); expect(res.status).toBe(403);
}); });
}); });
@ -24,7 +24,7 @@ describe("ipWhitelist directive configuration", () => {
}); });
it("should return 200", async () => { 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); expect(res.status).toBe(200);
}); });
}); });