mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 12:54:53 -05:00
archiver: tests: combine numQueued declaration with next-instruction assignment
This commit is contained in:
parent
9fc8bedb56
commit
bcc5214023
1 changed files with 1 additions and 3 deletions
|
@ -49,9 +49,7 @@ func waitForCount(t *testing.T, num int) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func releaseOneEntry(t *testing.T, inFlight []*ArchiveRequest) {
|
func releaseOneEntry(t *testing.T, inFlight []*ArchiveRequest) {
|
||||||
var numQueued int
|
numQueued := len(archiveInProgress)
|
||||||
|
|
||||||
numQueued = len(archiveInProgress)
|
|
||||||
|
|
||||||
// Release one, then WaitForCompletion. We'll get signalled when ready.
|
// Release one, then WaitForCompletion. We'll get signalled when ready.
|
||||||
// This works out to be quick and race-free, as we'll get signalled when the
|
// This works out to be quick and race-free, as we'll get signalled when the
|
||||||
|
|
Loading…
Reference in a new issue