From f2e21d1c479077760d9658f40f7b730653d6a34d Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Wed, 18 Oct 2023 13:53:17 +0800 Subject: [PATCH] chore: use conn.buffer.String() instead of string(conn.buffer.Bytes()) --- minitouch_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minitouch_test.go b/minitouch_test.go index 4541b2c..c692ef3 100644 --- a/minitouch_test.go +++ b/minitouch_test.go @@ -65,6 +65,6 @@ $ 25654`), } close(reqC) drainTouchRequests(conn, reqC) - output := string(conn.buffer.Bytes()) + output := conn.buffer.String() assert.Equal(t, "d 1 1080 1920 255\nc\nm 3 540 960 255\nu 4\n", output) }