Skip to content

Commit ff901c3

Browse files
committed
Fix
1 parent 2372a5d commit ff901c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

master/queue/jobgenerators/ioi_generator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,14 @@ func (i *IOIGenerator) NextJob() *invokerconn.Job {
181181
}
182182
i.internalTestResults[i.firstNotGivenTest-1].state = testRunning
183183
job.Test = i.firstNotGivenTest
184-
i.givenJobs[job.ID] = job
185-
i.firstNotGivenTest++
186184

187185
for givenJobID, testingJob := range i.givenJobs {
188186
if i.doesGroupDependOnJob(groupName, testingJob) {
189187
job.RequiredJobIDs = append(job.RequiredJobIDs, givenJobID)
190188
}
191189
}
190+
i.givenJobs[job.ID] = job
191+
i.firstNotGivenTest++
192192
return job
193193
}
194194
return nil

0 commit comments

Comments
 (0)