소스 검색

update test

v2ray 9 년 전
부모
커밋
7a082ce63a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      common/protocol/headers_test.go

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