From 383933c971642ef727dbb5091b080c632df6106e Mon Sep 17 00:00:00 2001 From: John Roesler Date: Wed, 27 Aug 2025 15:04:09 -0500 Subject: [PATCH] fix tests --- scheduler_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scheduler_test.go b/scheduler_test.go index 4ef276d..3247698 100644 --- a/scheduler_test.go +++ b/scheduler_test.go @@ -1506,7 +1506,7 @@ func TestScheduler_OneTimeJob_DoesNotCleanupNext(t *testing.T) { clock.Advance(oneSecondAfterNextRun.Sub(schedulerStartTime)) require.Eventually(t, func() bool { - return assert.Equal(t, uint32(1), runs.Load()) + return uint32(1) == runs.Load() }, 3*time.Second, 100*time.Millisecond) // last was run @@ -2458,7 +2458,7 @@ func TestScheduler_AtTimesJob(t *testing.T) { // advance and eventually run clock.Advance(2 * time.Millisecond) require.Eventually(t, func() bool { - return assert.Equal(t, uint32(1), runs.Load()) + return uint32(1) == runs.Load() }, 3*time.Second, 100*time.Millisecond) // last was run @@ -2493,7 +2493,7 @@ func TestScheduler_AtTimesJob(t *testing.T) { // advance and eventually run clock.Advance(2 * time.Millisecond) require.Eventually(t, func() bool { - return assert.Equal(t, uint32(1), runs.Load()) + return uint32(1) == runs.Load() }, 3*time.Second, 100*time.Millisecond) // last was run @@ -2524,7 +2524,7 @@ func TestScheduler_AtTimesJob(t *testing.T) { // advance and eventually run clock.Advance(2 * time.Millisecond) require.Eventually(t, func() bool { - return assert.Equal(t, uint32(1), runs.Load()) + return uint32(1) == runs.Load() }, 3*time.Second, 100*time.Millisecond) // last was run @@ -2541,7 +2541,7 @@ func TestScheduler_AtTimesJob(t *testing.T) { // advance and eventually run clock.Advance(2 * time.Millisecond) require.Eventually(t, func() bool { - return assert.Equal(t, uint32(2), runs.Load()) + return uint32(2) == runs.Load() }, 3*time.Second, 100*time.Millisecond) // last was run @@ -2577,7 +2577,7 @@ func TestScheduler_AtTimesJob(t *testing.T) { // advance and eventually run clock.Advance(2 * time.Millisecond) require.Eventually(t, func() bool { - return assert.Equal(t, uint32(1), runs.Load()) + return uint32(1) == runs.Load() }, 3*time.Second, 100*time.Millisecond) // last was run @@ -2594,7 +2594,7 @@ func TestScheduler_AtTimesJob(t *testing.T) { // advance and eventually run clock.Advance(2 * time.Millisecond) require.Eventually(t, func() bool { - return assert.Equal(t, uint32(2), runs.Load()) + return uint32(2) == runs.Load() }, 3*time.Second, 100*time.Millisecond) // last was run