mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-26 18:31:35 +08:00
use assignment in tests (#12734)
Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
parent
78509b5f9b
commit
69b8d7ba19
|
@ -52,7 +52,7 @@ func TestPersistableChannelQueue(t *testing.T) {
|
||||||
err = queue.Push(&test1)
|
err = queue.Push(&test1)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
go func() {
|
go func() {
|
||||||
err = queue.Push(&test2)
|
err := queue.Push(&test2)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ func TestLevelQueue(t *testing.T) {
|
||||||
err = queue.Push(&test1)
|
err = queue.Push(&test1)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
go func() {
|
go func() {
|
||||||
err = queue.Push(&test2)
|
err := queue.Push(&test2)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user