From 26986eb2f848719b69f40f4ec9a113cf05a04a43 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 15 Aug 2022 15:17:00 +0300 Subject: [PATCH] tests: fix deprecation warning in tcp_test.v --- vlib/net/tcp_test.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/net/tcp_test.v b/vlib/net/tcp_test.v index 963ccca8b..a001546cc 100644 --- a/vlib/net/tcp_test.v +++ b/vlib/net/tcp_test.v @@ -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] -- 2.30.2