From a2d8d55ba19ec80dcda2f338295dfd8d2c258cc4 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Fri, 3 Jun 2016 11:40:50 +0200 Subject: [PATCH] Update io_test.go --- proxy/vmess/io/io_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxy/vmess/io/io_test.go b/proxy/vmess/io/io_test.go index 232d95448..a26121806 100644 --- a/proxy/vmess/io/io_test.go +++ b/proxy/vmess/io/io_test.go @@ -32,6 +32,7 @@ func TestSingleIO(t *testing.T) { writer := NewAuthChunkWriter(v2io.NewAdaptiveWriter(content)) writer.Write(alloc.NewBuffer().Clear().AppendString("abcd")) + writer.Write(alloc.NewBuffer().Clear()) writer.Release() reader := NewAuthChunkReader(content) @@ -90,6 +91,7 @@ func TestLargeIO(t *testing.T) { break } } + writer.Write(alloc.NewBuffer().Clear()) writer.Release() actualContent := make([]byte, 0, len(content))