@@ -27,7 +27,7 @@ fn test_ws_ipv6() {
27
27
}
28
28
spawn start_server (.ip6 , 30001 )
29
29
time.sleep (1500 * time.millisecond)
30
- ws_test (.ip6 , 'ws://localhost:${port} ' ) or {
30
+ ws_test (.ip6 , 'ws://localhost:30001 ' ) or {
31
31
eprintln ('> error while connecting .ip6, err: ${err} ' )
32
32
assert false
33
33
}
@@ -40,7 +40,7 @@ fn test_ws_ipv4() {
40
40
}
41
41
spawn start_server (.ip, 30002 )
42
42
time.sleep (1500 * time.millisecond)
43
- ws_test (.ip, 'ws://localhost:${port} ' ) or {
43
+ ws_test (.ip, 'ws://localhost:30002 ' ) or {
44
44
eprintln ('> error while connecting .ip, err: ${err} ' )
45
45
assert false
46
46
}
@@ -138,7 +138,7 @@ fn test_on_close_when_server_closing_connection() ! {
138
138
}, test_results)
139
139
spawn ws.listen ()
140
140
141
- mut client := websocket.new_client ('ws://localhost:${port} ' )!
141
+ mut client := websocket.new_client ('ws://localhost:30003 ' )!
142
142
143
143
client.connect ()!
144
144
spawn client.listen ()
@@ -156,7 +156,7 @@ fn test_on_close_when_client_closing_connection() ! {
156
156
mut ws := websocket.new_server (.ip, 30004 , '' )
157
157
spawn ws.listen ()
158
158
159
- mut client := websocket.new_client ('ws://localhost:${port} ' )!
159
+ mut client := websocket.new_client ('ws://localhost:30004 ' )!
160
160
161
161
mut test_results := WebsocketTestResults{}
162
162
client.on_close_ref (fn (mut cli websocket.Client, code int , reason string , mut res WebsocketTestResults) ! {
0 commit comments