mirror of https://github.com/go-gitea/gitea.git
archiver: tests: no underscore in var name, ungh
This commit is contained in:
parent
59786fe125
commit
759b4d1eec
|
@ -132,8 +132,8 @@ func TestArchive_Basic(t *testing.T) {
|
||||||
ArchiveRepository(zipReq)
|
ArchiveRepository(zipReq)
|
||||||
|
|
||||||
// Sleep two seconds to make sure the queue doesn't change.
|
// Sleep two seconds to make sure the queue doesn't change.
|
||||||
two_seconds, _ := time.ParseDuration("2s")
|
twoSeconds, _ := time.ParseDuration("2s")
|
||||||
time.Sleep(two_seconds)
|
time.Sleep(twoSeconds)
|
||||||
assert.Equal(t, 3, len(archiveInProgress))
|
assert.Equal(t, 3, len(archiveInProgress))
|
||||||
|
|
||||||
// Release them all, they'll then stall at the archiveQueueReleaseCond while
|
// Release them all, they'll then stall at the archiveQueueReleaseCond while
|
||||||
|
|
Loading…
Reference in New Issue