From 63344c3c9764e4c0d5b45c6dbb441f935a7aa5ae Mon Sep 17 00:00:00 2001 From: kvii <56432636+kvii@users.noreply.github.com> Date: Fri, 15 Mar 2024 11:12:23 +0800 Subject: [PATCH] fix: remove duplicate test codes. (#3187) --- transport/http/binding/encode_test.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/transport/http/binding/encode_test.go b/transport/http/binding/encode_test.go index 55331f12b64..066e0624967 100644 --- a/transport/http/binding/encode_test.go +++ b/transport/http/binding/encode_test.go @@ -33,12 +33,6 @@ func TestEncodeURL(t *testing.T) { needQuery: false, want: "http://helloworld.Greeter/helloworld/{}/sub/hello", }, - { - pathTemplate: "http://helloworld.Greeter/helloworld/{}/sub/{sub.naming}", - request: &binding.HelloRequest{Name: "test", Sub: &binding.Sub{Name: "hello"}}, - needQuery: false, - want: "http://helloworld.Greeter/helloworld/{}/sub/hello", - }, { pathTemplate: "http://helloworld.Greeter/helloworld/{}/sub/{sub.name.cc}", request: &binding.HelloRequest{Name: "test", Sub: &binding.Sub{Name: "hello"}}, @@ -69,12 +63,6 @@ func TestEncodeURL(t *testing.T) { needQuery: false, want: "http://helloworld.Greeter/helloworld/test/sub/", }, - { - pathTemplate: "http://helloworld.Greeter/helloworld/{name}/sub/{sub.name}", - request: &binding.HelloRequest{Name: "test"}, - needQuery: false, - want: "http://helloworld.Greeter/helloworld/test/sub/", - }, { pathTemplate: "http://helloworld.Greeter/helloworld/{name}/sub", request: &binding.HelloRequest{Name: "go", Sub: &binding.Sub{Name: "kratos"}},