Skip to content

Commit

Permalink
fix typo (#3575)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuishuang authored Apr 12, 2022
1 parent 132397d commit 4509ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/es/client/index_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, ",")
Expand Down

0 comments on commit 4509ef1

Please sign in to comment.