From 93e4add449be48d8dc257f4f4ba6f7360be552d0 Mon Sep 17 00:00:00 2001 From: Trevor Whitney Date: Thu, 1 Aug 2024 11:53:42 -0600 Subject: [PATCH] fix: remove now unused test --- pkg/distributor/distributor_test.go | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/pkg/distributor/distributor_test.go b/pkg/distributor/distributor_test.go index 404c1f01d6c4..9992fb294caa 100644 --- a/pkg/distributor/distributor_test.go +++ b/pkg/distributor/distributor_test.go @@ -151,7 +151,6 @@ func Test_IncrementTimestamp(t *testing.T) { defaultLimits := &validation.Limits{} flagext.DefaultValues(defaultLimits) - now := time.Now() defaultLimits.DiscoverLogLevels = false tests := map[string]struct { @@ -399,34 +398,6 @@ func Test_IncrementTimestamp(t *testing.T) { }, }, }, - "default limit adding service_name label": { - limits: defaultLimits, - push: &logproto.PushRequest{ - Streams: []logproto.Stream{ - { - Labels: "{job=\"foo\"}", - Entries: []logproto.Entry{ - {Timestamp: now.Add(-2 * time.Second), Line: "hey1"}, - {Timestamp: now.Add(-time.Second), Line: "hey2"}, - {Timestamp: now, Line: "hey3"}, - }, - }, - }, - }, - expectedPush: &logproto.PushRequest{ - Streams: []logproto.Stream{ - { - Labels: "{job=\"foo\", service_name=\"foo\"}", - Hash: 0x86ca305b6d86e8b0, - Entries: []logproto.Entry{ - {Timestamp: now.Add(-2 * time.Second), Line: "hey1"}, - {Timestamp: now.Add(-time.Second), Line: "hey2"}, - {Timestamp: now, Line: "hey3"}, - }, - }, - }, - }, - }, } for testName, testData := range tests {