Skip to content

Commit

Permalink
do not test function against itself
Browse files Browse the repository at this point in the history
  • Loading branch information
aloababa committed Oct 24, 2023
1 parent 059d88e commit a8862b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xray/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a8862b5

Please sign in to comment.