Skip to content

Commit cf47a5f

Browse files
committed
ci: fix websocket_test.v after a7ae3bf
1 parent 12ec0e9 commit cf47a5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vlib/net/websocket/websocket_test.v

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fn test_ws_ipv6() {
2727
}
2828
spawn start_server(.ip6, 30001)
2929
time.sleep(1500 * time.millisecond)
30-
ws_test(.ip6, 'ws://localhost:${port}') or {
30+
ws_test(.ip6, 'ws://localhost:30001') or {
3131
eprintln('> error while connecting .ip6, err: ${err}')
3232
assert false
3333
}
@@ -40,7 +40,7 @@ fn test_ws_ipv4() {
4040
}
4141
spawn start_server(.ip, 30002)
4242
time.sleep(1500 * time.millisecond)
43-
ws_test(.ip, 'ws://localhost:${port}') or {
43+
ws_test(.ip, 'ws://localhost:30002') or {
4444
eprintln('> error while connecting .ip, err: ${err}')
4545
assert false
4646
}
@@ -138,7 +138,7 @@ fn test_on_close_when_server_closing_connection() ! {
138138
}, test_results)
139139
spawn ws.listen()
140140

141-
mut client := websocket.new_client('ws://localhost:${port}')!
141+
mut client := websocket.new_client('ws://localhost:30003')!
142142

143143
client.connect()!
144144
spawn client.listen()
@@ -156,7 +156,7 @@ fn test_on_close_when_client_closing_connection() ! {
156156
mut ws := websocket.new_server(.ip, 30004, '')
157157
spawn ws.listen()
158158

159-
mut client := websocket.new_client('ws://localhost:${port}')!
159+
mut client := websocket.new_client('ws://localhost:30004')!
160160

161161
mut test_results := WebsocketTestResults{}
162162
client.on_close_ref(fn (mut cli websocket.Client, code int, reason string, mut res WebsocketTestResults) ! {

0 commit comments

Comments
 (0)