From a107b8a92ca59ee9074eab87e9dc6253c174e9a1 Mon Sep 17 00:00:00 2001 From: luyi Date: Sun, 5 Jun 2022 22:32:21 +0800 Subject: [PATCH] Remove obsolete unit test code. --- pkg/config/config_test.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index 8f7dab0..435fc18 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -71,15 +71,9 @@ func TestOption_SetEmptyFieldDefaultConfig(t *testing.T) { ) assert.NotNil(t, opt) assert.Equal(t, uint32(100000), opt.BufferSize) - assert.Equal(t, uint32(0), opt.Timeout) - opt.Validate() - assert.Equal(t, uint32(100000), opt.BufferSize) assert.Equal(t, uint32(constant.DefaultTimeout), opt.Timeout) opt = NewTripleOption() - assert.Equal(t, uint32(0), opt.BufferSize) - assert.Equal(t, uint32(0), opt.Timeout) - opt.Validate() assert.Equal(t, uint32(constant.DefaultHttp2ControllerReadBufferSize), opt.BufferSize) assert.Equal(t, uint32(constant.DefaultTimeout), opt.Timeout) }