diff --git a/pkg/es/client/index_client_test.go b/pkg/es/client/index_client_test.go index 406e6475551..a5e8be7e56a 100644 --- a/pkg/es/client/index_client_test.go +++ b/pkg/es/client/index_client_test.go @@ -249,7 +249,7 @@ func TestClientDeleteIndices(t *testing.T) { assert.Equal(t, fmt.Sprintf("%ds", masterTimeoutSeconds), req.URL.Query().Get("master_timeout")) assert.True(t, len(req.URL.Path) <= maxURLPathLength) - // removes begining '/' and ending ',' + // removes leading '/' and trailing ',' // example: /jaeger-span-000001, => jaeger-span-000001 rawIndices := strings.TrimPrefix(req.URL.Path, "/") rawIndices = strings.TrimSuffix(rawIndices, ",")