From 7a082ce63a31697f73fe3f19885934fe000d87c5 Mon Sep 17 00:00:00 2001 From: v2ray Date: Thu, 2 Jun 2016 21:48:49 +0200 Subject: [PATCH] update test --- common/protocol/headers_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/protocol/headers_test.go b/common/protocol/headers_test.go index da7cf4342..e746a2799 100644 --- a/common/protocol/headers_test.go +++ b/common/protocol/headers_test.go @@ -10,7 +10,7 @@ import ( func TestRequestOptionSet(t *testing.T) { assert := assert.On(t) - option := new(RequestOption) + var option RequestOption assert.Bool(option.Has(RequestOptionChunkStream)).IsFalse() option.Set(RequestOptionChunkStream) @@ -24,7 +24,7 @@ func TestRequestOptionSet(t *testing.T) { func TestRequestOptionClear(t *testing.T) { assert := assert.On(t) - option := new(RequestOption) + var option RequestOption option.Set(RequestOptionChunkStream) option.Set(RequestOptionConnectionReuse)