From 69b8d7ba19080a38fb78bf1722855d7f5202c667 Mon Sep 17 00:00:00 2001 From: zeripath Date: Sat, 5 Sep 2020 23:50:57 +0100 Subject: [PATCH] use assignment in tests (#12734) Signed-off-by: Andrew Thornton --- modules/queue/queue_disk_channel_test.go | 2 +- modules/queue/queue_disk_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/queue/queue_disk_channel_test.go b/modules/queue/queue_disk_channel_test.go index 5049fb58d0a..93061bffc65 100644 --- a/modules/queue/queue_disk_channel_test.go +++ b/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) }() diff --git a/modules/queue/queue_disk_test.go b/modules/queue/queue_disk_test.go index 789b6c3e640..edaed49a523 100644 --- a/modules/queue/queue_disk_test.go +++ b/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) }()