Loki: backend: use custom http code (#44643)

* Loki: backend: use custom http code

* simplfied comment

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
This commit is contained in:
Gábor Farkas
2022-02-18 14:35:39 +01:00
committed by GitHub
co-authored by Ivana Huckova
parent 380e07ba29
commit 5d704fd46e
4 changed files with 164 additions and 73 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
package loki
import (
"context"
"fmt"
"math/rand"
"strings"
@@ -15,7 +16,7 @@ func BenchmarkMatrixJson(b *testing.B) {
b.ResetTimer()
for n := 0; n < b.N; n++ {
_, _ = runQuery(makeMockedClient(200, "application/json", bytes), &lokiQuery{})
_, _ = runQuery(context.Background(), makeMockedAPI(200, "application/json", bytes), &lokiQuery{})
}
}