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:
parent
c63fed5393
commit
de0683fe30
@ -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()?
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user