From 908e6256a9f60fd8d94d60c5e7bd5445515381b4 Mon Sep 17 00:00:00 2001 From: jessetang <1430482733@qq.com> Date: Mon, 9 Sep 2024 11:11:08 +0800 Subject: [PATCH] chore: remove non-existent test methods (#2770) --- transport/http/client_test.go | 13 +++++++++---- transport/http/server_test.go | 4 ---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/transport/http/client_test.go b/transport/http/client_test.go index 25ae9a8ecf1..ab3e83b664c 100644 --- a/transport/http/client_test.go +++ b/transport/http/client_test.go @@ -42,6 +42,15 @@ func (x *mockCallOption) after(_ *callInfo, _ *csAttempt) { log.Println("run in mockCallOption.after") } +func TestWithSubset(t *testing.T) { + co := &clientOptions{} + o := WithSubset(1) + o(co) + if co.subsetSize != 1 { + t.Error("expected subset size to be 1") + } +} + func TestWithTransport(t *testing.T) { ov := &mockRoundTripper{} o := WithTransport(ov) @@ -71,10 +80,6 @@ func TestWithBlock(t *testing.T) { } } -func TestWithBalancer(_ *testing.T) { - // TODO -} - func TestWithTLSConfig(t *testing.T) { ov := &tls.Config{} o := WithTLSConfig(ov) diff --git a/transport/http/server_test.go b/transport/http/server_test.go index 4447750483d..7bd31e864da 100644 --- a/transport/http/server_test.go +++ b/transport/http/server_test.go @@ -308,10 +308,6 @@ func TestTimeout(t *testing.T) { } } -func TestLogger(_ *testing.T) { - // TODO -} - func TestRequestDecoder(t *testing.T) { o := &Server{} v := func(*http.Request, interface{}) error { return nil }