diff --git a/config/confighttp/confighttp_test.go b/config/confighttp/confighttp_test.go index 369c4df4683..54a2ce46b3a 100644 --- a/config/confighttp/confighttp_test.go +++ b/config/confighttp/confighttp_test.go @@ -1609,7 +1609,7 @@ func TestOperationPrefix(t *testing.T) { go func() { _ = s.Serve(ln) }() - status, err := http.Get(fmt.Sprintf("http://%s", ln.Addr().String())) + status, err := http.Get("http://" + ln.Addr().String()) require.NoError(t, err) require.Equal(t, http.StatusOK, status.StatusCode) require.NoError(t, s.Close()) @@ -1619,5 +1619,4 @@ func TestOperationPrefix(t *testing.T) { require.False(t, strings.HasPrefix(spanName, ":")) }) } - }