all: replace strings.Replace with string.ReplaceAll (#24835)

This commit is contained in:
s7v7nislands
2022-05-09 13:13:23 +03:00
committed by GitHub
parent 86d5477079
commit 7caa2d8163
10 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -1577,8 +1577,8 @@ func TestRemoteHeaderRequestSpan(t *testing.T) {
}
}
if failed {
res := strings.Replace(fmt.Sprint(data), " ", ",", -1)
exp := strings.Replace(fmt.Sprint(tt.expected), " ", ",", -1)
res := strings.ReplaceAll(fmt.Sprint(data), " ", ",")
exp := strings.ReplaceAll(fmt.Sprint(tt.expected), " ", ",")
t.Logf("got: %v\n", res)
t.Logf("exp: %v\n", exp)
t.Errorf("test %d: wrong values", i)