aboutsummaryrefslogtreecommitdiffstats
path: root/modules/queue
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-09-05 23:50:57 +0100
committerGitHub <noreply@github.com>2020-09-06 01:50:57 +0300
commit69b8d7ba19080a38fb78bf1722855d7f5202c667 (patch)
tree049a72b2fe49911ecc7d1cf984d243986b3f73ce /modules/queue
parent78509b5f9b60a21feb7f7df0c029c3a7243708ab (diff)
downloadgitea-69b8d7ba19080a38fb78bf1722855d7f5202c667.tar.gz
gitea-69b8d7ba19080a38fb78bf1722855d7f5202c667.zip
use assignment in tests (#12734)
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/queue')
-rw-r--r--modules/queue/queue_disk_channel_test.go2
-rw-r--r--modules/queue/queue_disk_test.go2
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 5049fb58d0..93061bffc6 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 789b6c3e64..edaed49a52 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)
}()