From cc3a1dbf46a67dc6d3fe89a8127784417a9008f8 Mon Sep 17 00:00:00 2001 From: John Roesler Date: Wed, 27 Aug 2025 15:10:53 -0500 Subject: [PATCH] Bump testify (#868) * Bump github.com/stretchr/testify from 1.10.0 to 1.11.0 * fix tests --- go.mod | 2 +- go.sum | 4 ++-- scheduler_test.go | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/go.mod b/go.mod index 9d544da..7251ea9 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/google/uuid v1.6.0 github.com/jonboulle/clockwork v0.5.0 github.com/robfig/cron/v3 v3.0.1 - github.com/stretchr/testify v1.10.0 + github.com/stretchr/testify v1.11.1 go.uber.org/goleak v1.3.0 ) diff --git a/go.sum b/go.sum index 79a2e4d..2bb7247 100644 --- a/go.sum +++ b/go.sum @@ -15,8 +15,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs= github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro= -github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= -github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= +github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 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