Skip to content

Commit

Permalink
Merge pull request #36 from luyi404/fix/config_test
Browse files Browse the repository at this point in the history
Remove obsolete unit test code.
  • Loading branch information
justxuewei authored Jun 14, 2022
2 parents 17b9fb2 + a107b8a commit 73fc31c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 73fc31c

Please sign in to comment.