Skip to content

Commit

Permalink
Removed superfluous time sensitive assertion
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Pracucci <marco@pracucci.com>
  • Loading branch information
pracucci committed Apr 27, 2022
1 parent 8ab23da commit 1143b56
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/querier/worker/scheduler_processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 1143b56

Please sign in to comment.