diff --git a/vlib/net/udp_test.v b/vlib/net/udp_test.v index 100cf3d6c7..4dd5dc8dc7 100644 --- a/vlib/net/udp_test.v +++ b/vlib/net/udp_test.v @@ -1,5 +1,13 @@ import net +fn testsuite_begin() { + $if windows { + $if !network ? { + exit(0) + } + } +} + fn echo_server(mut c net.UdpConn) { for { mut buf := []byte{len: 100, init: 0} @@ -56,7 +64,3 @@ fn test_udp() { l.close() or { } } - -fn main() { - test_udp() -}