mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
Revert "net: prevent udp_test.v from running on windows without -d network"
This reverts commit 3526bc3d19
.
This commit is contained in:
parent
3526bc3d19
commit
e0ed224a8d
@ -1,13 +1,5 @@
|
|||||||
import net
|
import net
|
||||||
|
|
||||||
fn testsuite_begin() {
|
|
||||||
$if windows {
|
|
||||||
$if !network ? {
|
|
||||||
exit(0)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn echo_server(mut c net.UdpConn) {
|
fn echo_server(mut c net.UdpConn) {
|
||||||
for {
|
for {
|
||||||
mut buf := []byte{len: 100, init: 0}
|
mut buf := []byte{len: 100, init: 0}
|
||||||
@ -64,3 +56,7 @@ fn test_udp() {
|
|||||||
|
|
||||||
l.close() or { }
|
l.close() or { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
test_udp()
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user