diff --git a/test/clash_test.go b/test/clash_test.go index e7f478941f..15a634b0af 100644 --- a/test/clash_test.go +++ b/test/clash_test.go @@ -658,7 +658,7 @@ func benchmarkProxy(b *testing.B, proxy C.ProxyAdapter) { b.SetBytes(chunkSize) buf := make([]byte, chunkSize) for i := 0; i < b.N; i++ { - conn.Read(buf) + io.ReadFull(conn, buf) } }) }