From 7da7468a3fc3f914c7b032c25c3e35097fd85449 Mon Sep 17 00:00:00 2001 From: aimuz Date: Mon, 15 May 2023 23:14:30 +0800 Subject: [PATCH] cleanup: duplicate request_test TestRequestAbsPathPreservesTrailingSlash Signed-off-by: aimuz --- staging/src/k8s.io/client-go/rest/request_test.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/staging/src/k8s.io/client-go/rest/request_test.go b/staging/src/k8s.io/client-go/rest/request_test.go index b4d6ea09af7..7f49bef5082 100644 --- a/staging/src/k8s.io/client-go/rest/request_test.go +++ b/staging/src/k8s.io/client-go/rest/request_test.go @@ -139,11 +139,6 @@ func TestRequestAbsPathPreservesTrailingSlash(t *testing.T) { if s := r.URL().String(); s != "/foo/" { t.Errorf("trailing slash should be preserved: %s", s) } - - r = (&Request{c: &RESTClient{base: &url.URL{}}}).AbsPath("/foo/") - if s := r.URL().String(); s != "/foo/" { - t.Errorf("trailing slash should be preserved: %s", s) - } } func TestRequestAbsPathJoins(t *testing.T) {