From a8862b569e248ef6c5415494f16d1ce2bee85b73 Mon Sep 17 00:00:00 2001 From: Benjamin Gustin Date: Tue, 24 Oct 2023 17:45:44 +0200 Subject: [PATCH] do not test function against itself --- xray/client_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xray/client_test.go b/xray/client_test.go index 59442b83..3bc1fbd3 100644 --- a/xray/client_test.go +++ b/xray/client_test.go @@ -223,7 +223,7 @@ func TestRoundTripWithBasicAuth(t *testing.T) { if assert.NoError(t, json.Unmarshal(seg.Subsegments[0], &subseg)) { assert.Equal(t, "remote", subseg.Namespace) assert.Equal(t, http.MethodGet, subseg.HTTP.Request.Method) - assert.Equal(t, stripURL(*u), subseg.HTTP.Request.URL) + assert.Equal(t, "http://user:***@127.0.0.1:"+u.Port(), subseg.HTTP.Request.URL) assert.Equal(t, http.StatusOK, subseg.HTTP.Response.Status) assert.Equal(t, responseContentLength, subseg.HTTP.Response.ContentLength) assert.False(t, subseg.Throttle)