Skip to content

Commit 9d49196

Browse files
Fix ipWhiteList test (#3181)
Port change seems to fix a timing issue.
1 parent ef20fe2 commit 9d49196

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ _This release is scheduled to be released on 2023-10-01._
3232
- Fix undefined formatTime method in clock module (#3143)
3333
- Fix clientonly startup fails after async added (#3151)
3434
- Fix electron width/heigth when using xrandr under bullseye
35+
- Fix ipWhiteList test (#3179)
3536

3637
## [2.24.0] - 2023-07-01
3738

tests/configs/empty_ipWhiteList.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
* MIT Licensed.
55
*/
66
let config = require(`${process.cwd()}/tests/configs/default.js`).configFactory({
7-
ipWhitelist: []
7+
ipWhitelist: [],
8+
port: 8282
89
});
910

1011
/*************** DO NOT EDIT THE LINE BELOW ***************/

tests/configs/noIpWhiteList.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
* MIT Licensed.
55
*/
66
let config = require(`${process.cwd()}/tests/configs/default.js`).configFactory({
7-
ipWhitelist: ["x.x.x.x"]
7+
ipWhitelist: ["x.x.x.x"],
8+
port: 8181
89
});
910

1011
/*************** DO NOT EDIT THE LINE BELOW ***************/

tests/e2e/ipWhitelist_spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe("ipWhitelist directive configuration", () => {
1010
});
1111

1212
it("should return 403", async () => {
13-
const res = await helpers.fetch("http://localhost:8080");
13+
const res = await helpers.fetch("http://localhost:8181");
1414
expect(res.status).toBe(403);
1515
});
1616
});
@@ -24,7 +24,7 @@ describe("ipWhitelist directive configuration", () => {
2424
});
2525

2626
it("should return 200", async () => {
27-
const res = await helpers.fetch("http://localhost:8080");
27+
const res = await helpers.fetch("http://localhost:8282");
2828
expect(res.status).toBe(200);
2929
});
3030
});

0 commit comments

Comments
 (0)