From aa74a4063c52982b7dc8e2fbbdd305e55daf5fe5 Mon Sep 17 00:00:00 2001 From: zach593 Date: Wed, 26 Nov 2025 22:50:56 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Fix=20unused=20priorityqueue=20test?= =?UTF-8?q?:=20TestWhenAddingMultipleItemsWithRatelimitTrueTheyDontAffectE?= =?UTF-8?q?achOther?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zach593 --- pkg/controller/priorityqueue/priorityqueue_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/priorityqueue/priorityqueue_test.go b/pkg/controller/priorityqueue/priorityqueue_test.go index 15e0804d8d..8260126e12 100644 --- a/pkg/controller/priorityqueue/priorityqueue_test.go +++ b/pkg/controller/priorityqueue/priorityqueue_test.go @@ -889,7 +889,7 @@ func TestMetricsAreUpdatedForItemWhoseRequeueAfterExpiredThatGetsAddedAgainWitho }) } -func TesWhenAddingMultipleItemsWithRatelimitTrueTheyDontAffectEachOther(t *testing.T) { +func TestWhenAddingMultipleItemsWithRatelimitTrueTheyDontAffectEachOther(t *testing.T) { t.Parallel() synctest.Test(t, func(t *testing.T) { g := NewWithT(t) @@ -927,7 +927,7 @@ func TesWhenAddingMultipleItemsWithRatelimitTrueTheyDontAffectEachOther(t *testi forwardQueueTimeBy(5 * time.Millisecond) synctest.Wait() - g.Expect(retrievedItem).NotTo(BeClosed()) + g.Expect(retrievedItem).To(BeClosed()) g.Expect(retrievedSecondItem).NotTo(BeClosed()) forwardQueueTimeBy(635 * time.Millisecond)