Explorar o código

Update io_test.go

Darien Raymond %!s(int64=9) %!d(string=hai) anos
pai
achega
a2d8d55ba1
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      proxy/vmess/io/io_test.go

+ 2 - 0
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))