From 1143b56211892b6713277451f16398cc41f05ff3 Mon Sep 17 00:00:00 2001 From: Marco Pracucci Date: Wed, 27 Apr 2022 12:18:18 +0200 Subject: [PATCH] Removed superfluous time sensitive assertion Signed-off-by: Marco Pracucci --- pkg/querier/worker/scheduler_processor_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/querier/worker/scheduler_processor_test.go b/pkg/querier/worker/scheduler_processor_test.go index 76b1e5306e7..4fc45e658a8 100644 --- a/pkg/querier/worker/scheduler_processor_test.go +++ b/pkg/querier/worker/scheduler_processor_test.go @@ -34,9 +34,7 @@ func TestSchedulerProcessor_processQueriesOnSingleStream(t *testing.T) { workerCtx, workerCancel := context.WithCancel(context.Background()) workerCancel() - startTime := time.Now() sp.processQueriesOnSingleStream(workerCtx, nil, "127.0.0.1") - assert.Less(t, time.Since(startTime), time.Second) // We expect at this point, the execution context has been canceled too. require.Error(t, loopClient.Context().Err())