use assignment in tests (#12734)

Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
zeripath 2020-09-05 23:50:57 +01:00 committed by GitHub
parent 78509b5f9b
commit 69b8d7ba19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

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

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