From 7252c5d258f5db6158796dbb335f11bfaf231283 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 25 Jun 2024 03:04:21 +0200 Subject: [PATCH] lib/logstorage: make golangci-lint happy --- lib/logstorage/storage_search_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/logstorage/storage_search_test.go b/lib/logstorage/storage_search_test.go index 3235eee1b..f42b14610 100644 --- a/lib/logstorage/storage_search_test.go +++ b/lib/logstorage/storage_search_test.go @@ -724,7 +724,7 @@ func TestStorageSearch(t *testing.T) { } } - t.Run("missing-tenant-smaller-than-existing", func(t *testing.T) { + t.Run("missing-tenant-smaller-than-existing", func(_ *testing.T) { tenantID := TenantID{ AccountID: 0, ProjectID: 0, @@ -742,7 +742,7 @@ func TestStorageSearch(t *testing.T) { } s.search(workersCount, so, nil, processBlock) }) - t.Run("missing-tenant-bigger-than-existing", func(t *testing.T) { + t.Run("missing-tenant-bigger-than-existing", func(_ *testing.T) { tenantID := TenantID{ AccountID: tenantsCount + 1, ProjectID: 0, @@ -760,7 +760,7 @@ func TestStorageSearch(t *testing.T) { } s.search(workersCount, so, nil, processBlock) }) - t.Run("missing-tenant-middle", func(t *testing.T) { + t.Run("missing-tenant-middle", func(_ *testing.T) { tenantID := TenantID{ AccountID: 1, ProjectID: 0, @@ -824,7 +824,7 @@ func TestStorageSearch(t *testing.T) { t.Fatalf("unexpected number of matching rows; got %d; want %d", n, expectedRowsCount) } }) - t.Run("stream-filter-mismatch", func(t *testing.T) { + t.Run("stream-filter-mismatch", func(_ *testing.T) { sf := mustNewTestStreamFilter(`{job="foobar",instance=~"host-.+:2345"}`) minTimestamp := baseTimestamp maxTimestamp := baseTimestamp + rowsPerBlock*1e9 + blocksPerStream @@ -950,7 +950,7 @@ func TestStorageSearch(t *testing.T) { t.Fatalf("unexpected number of rows; got %d; want %d", n, expectedRowsCount) } }) - t.Run("matching-stream-id-missing-time-range", func(t *testing.T) { + t.Run("matching-stream-id-missing-time-range", func(_ *testing.T) { sf := mustNewTestStreamFilter(`{job="foobar",instance="host-1:234"}`) tenantID := TenantID{ AccountID: 1,