Browse Source

use assignment in tests (#12734)

Signed-off-by: Andrew Thornton <art27@cantab.net>
for-closed-social
zeripath 4 years ago
committed by GitHub
parent
commit
69b8d7ba19
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      modules/queue/queue_disk_channel_test.go
  2. +1
    -1
      modules/queue/queue_disk_test.go

+ 1
- 1
modules/queue/queue_disk_channel_test.go View File

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

+ 1
- 1
modules/queue/queue_disk_test.go View File

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