Bump testify (#868)

* Bump github.com/stretchr/testify from 1.10.0 to 1.11.0

* fix tests
This commit is contained in:
John Roesler 2025-08-27 15:10:53 -05:00 committed by GitHub
parent 9e8c79dc9b
commit cc3a1dbf46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 10 deletions

2
go.mod
View File

@ -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
)

4
go.sum
View File

@ -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=

View File

@ -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