Browse Source

use assignment in tests (#12734)

Signed-off-by: Andrew Thornton <art27@cantab.net>
mj-v1.14.3
zeripath 2 years ago
committed by GitHub
parent
commit
69b8d7ba19
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/queue/queue_disk_channel_test.go
  2. 2
      modules/queue/queue_disk_test.go

2
modules/queue/queue_disk_channel_test.go

@ -52,7 +52,7 @@ func TestPersistableChannelQueue(t *testing.T) {
err = queue.Push(&test1)
assert.NoError(t, err)
go func() {
err = queue.Push(&test2)
err := queue.Push(&test2)
assert.NoError(t, err)
}()

2
modules/queue/queue_disk_test.go

@ -65,7 +65,7 @@ func TestLevelQueue(t *testing.T) {
err = queue.Push(&test1)
assert.NoError(t, err)
go func() {
err = queue.Push(&test2)
err := queue.Push(&test2)
assert.NoError(t, err)
}()

Loading…
Cancel
Save