1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tests: fix compilation of tcp_test.v

This commit is contained in:
Delyan Angelov 2022-07-23 23:33:43 +03:00
parent c63fed5393
commit de0683fe30
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -101,10 +101,10 @@ fn testsuite_end() {
eprintln('\ndone')
}
fn test_bind() {
fn test_bind() ? {
$if !network ? {
return
}
conn := net.dial_tcp_with_bind('vlang.io:80', '127.0.0.1:0')
conn.close()
mut conn := net.dial_tcp_with_bind('vlang.io:80', '127.0.0.1:0')?
conn.close()?
}