Skip to content

Commit 6b2c364

Browse files
committed
Use port numbers in net tests that are less likely to be taken hostage by random github runner processes
1 parent 65de283 commit 6b2c364

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

tests/net/serve/addresses.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
local net = require("@lune/net")
22

3-
local PORT = 8081
3+
local PORT = 8811
44
local LOCALHOST = "http://localhost"
55
local BROADCAST = `http://0.0.0.0`
66
local RESPONSE = "Hello, lune!"

tests/net/serve/handles.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
local net = require("@lune/net")
22
local task = require("@lune/task")
33

4-
local PORT = 8082
4+
local PORT = 8822
55
local URL = `http://127.0.0.1:{PORT}`
66
local RESPONSE = "Hello, lune!"
77

tests/net/serve/non_blocking.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ local process = require("@lune/process")
33
local stdio = require("@lune/stdio")
44
local task = require("@lune/task")
55

6-
local PORT = 8083
6+
local PORT = 8833
77
local RESPONSE = "Hello, lune!"
88

99
-- Serve should not yield the entire main thread forever, only

tests/net/serve/requests.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ local process = require("@lune/process")
33
local stdio = require("@lune/stdio")
44
local task = require("@lune/task")
55

6-
local PORT = 8084
6+
local PORT = 8844
77
local URL = `http://127.0.0.1:{PORT}`
88
local RESPONSE = "Hello, lune!"
99

tests/net/serve/websockets.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ local process = require("@lune/process")
33
local stdio = require("@lune/stdio")
44
local task = require("@lune/task")
55

6-
local PORT = 8085
6+
local PORT = 8855
77
local WS_URL = `ws://127.0.0.1:{PORT}`
88
local REQUEST = "Hello from client!"
99
local RESPONSE = "Hello, lune!"

0 commit comments

Comments
 (0)