1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix vlib/x/websocket tests

This commit is contained in:
Delyan Angelov
2020-09-27 11:09:20 +03:00
parent 7c6695317c
commit aa889b0edc
2 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,7 @@ fn echo_server(_c net.UdpConn) {
c.set_read_timeout(10 * time.second)
c.set_write_timeout(10 * time.second)
for {
buf := []byte{ len: 100, init: 0 }
mut buf := []byte{ len: 100, init: 0 }
read, addr := c.read_into(mut buf) or {
continue
}
@ -33,7 +33,7 @@ fn echo() ? {
c.write_string(data)?
buf := []byte{ len: 100, init: 0 }
mut buf := []byte{ len: 100, init: 0 }
read, addr := c.read_into(mut buf)?
assert read == data.len
@ -71,4 +71,4 @@ fn test_udp() {
fn main() {
test_udp()
}
}