mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: fix deprecation warning in tcp_test.v
This commit is contained in:
parent
6fdcc5bcd0
commit
26986eb2f8
@ -42,7 +42,7 @@ fn echo(address string) ? {
|
||||
data := 'Hello from vlib/net!'
|
||||
c.write_string(data)?
|
||||
mut buf := []u8{len: 4096}
|
||||
read := c.read(mut buf)?
|
||||
read := c.read(mut buf) or { panic(err) }
|
||||
assert read == data.len
|
||||
for i := 0; i < read; i++ {
|
||||
assert buf[i] == data[i]
|
||||
|
Loading…
Reference in New Issue
Block a user