Skip to content

Commit bd4be26

Browse files
Add constant type annotation to assert.Equal
Required with new version of Testify.
1 parent b5eef7d commit bd4be26

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

queue/queue_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,12 @@ func TestExecuteInParallel(t *testing.T) {
300300

301301
numCalls := uint64(0)
302302

303-
ExecuteInParallel(q, func(interface{}) {
303+
ExecuteInParallel(q, func(item interface{}) {
304+
t.Logf("ExecuteInParallel called us with %+v", item)
304305
atomic.AddUint64(&numCalls, 1)
305306
})
306307

307-
assert.Equal(t, 10, numCalls)
308+
assert.Equal(t, uint64(10), numCalls)
308309
assert.True(t, q.Disposed())
309310
}
310311

0 commit comments

Comments
 (0)