From e0ed224a8d7c41289f02da581fa520fd12e19b8b Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 25 Jan 2021 19:08:45 +0200 Subject: [PATCH] Revert "net: prevent udp_test.v from running on windows without -d network" This reverts commit 3526bc3d19f26353c5a2976603339224162839db. --- vlib/net/udp_test.v | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/vlib/net/udp_test.v b/vlib/net/udp_test.v index 4dd5dc8dc7..100cf3d6c7 100644 --- a/vlib/net/udp_test.v +++ b/vlib/net/udp_test.v @@ -1,13 +1,5 @@ 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} @@ -64,3 +56,7 @@ fn test_udp() { l.close() or { } } + +fn main() { + test_udp() +}