use assignment in tests (#12734)

Signed-off-by: Andrew Thornton <art27@cantab.net>
tokarchuk/v1.17
zeripath 4 years ago committed by GitHub
parent 78509b5f9b
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

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

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