From 3a10cf10e946d4aab327ae10072348d5d0d1a500 Mon Sep 17 00:00:00 2001 From: Pedro Tanaka Date: Fri, 6 Dec 2024 16:15:27 +0100 Subject: [PATCH] fixing benchmark Signed-off-by: Pedro Tanaka --- pkg/receive/handler_test.go | 4 +--- pkg/receive/multitsdb_test.go | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/receive/handler_test.go b/pkg/receive/handler_test.go index 4d450a8a72..c2dd89845d 100644 --- a/pkg/receive/handler_test.go +++ b/pkg/receive/handler_test.go @@ -6,6 +6,7 @@ package receive import ( "bytes" "context" + goerrors "errors" "fmt" "io" "math" @@ -24,8 +25,6 @@ import ( "gopkg.in/yaml.v3" - goerrors "errors" - "github.com/alecthomas/units" "github.com/efficientgo/core/testutil" "github.com/go-kit/log" @@ -1102,7 +1101,6 @@ func benchmarkHandlerMultiTSDBReceiveRemoteWrite(b testutil.TB) { nil, false, metadata.NoneFunc, - nil, ) defer func() { testutil.Ok(b, m.Close()) }() handler.writer = NewWriter(logger, m, &WriterOptions{}) diff --git a/pkg/receive/multitsdb_test.go b/pkg/receive/multitsdb_test.go index f886e1212b..41dda2c2d7 100644 --- a/pkg/receive/multitsdb_test.go +++ b/pkg/receive/multitsdb_test.go @@ -776,7 +776,6 @@ func TestProxyLabelValues(t *testing.T) { nil, false, metadata.NoneFunc, - nil, ) defer func() { testutil.Ok(t, m.Close()) }()