From de0683fe305735279d1c1e44920169d533e5e912 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 23 Jul 2022 23:33:43 +0300 Subject: [PATCH] tests: fix compilation of tcp_test.v --- vlib/net/tcp_test.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/net/tcp_test.v b/vlib/net/tcp_test.v index 955151ded7..963ccca8b6 100644 --- a/vlib/net/tcp_test.v +++ b/vlib/net/tcp_test.v @@ -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()? }