stash/pkg/job
SmallCoccinelle b76283df08
Fix data race in progress_test (#1696)
The call to p.ExecuteTask happens in a separate go-routine. It writes,
under m.mutex, into the job's details. However, the test goroutine
itself reads j.Details which is a read race.

Protect the reads in the test by the lock.

This makes `package job` pass `go test -race`
2021-09-07 13:30:26 +10:00
..
job.go Plugin hooks (#1452) 2021-06-11 17:24:58 +10:00
manager.go Plugin hooks (#1452) 2021-06-11 17:24:58 +10:00
manager_test.go Plugin hooks (#1452) 2021-06-11 17:24:58 +10:00
progress.go Fix movies sorting, scene studio editing (#1478) 2021-06-04 09:21:17 +10:00
progress_test.go Fix data race in progress_test (#1696) 2021-09-07 13:30:26 +10:00
subscribe.go Job queueing (#1379) 2021-05-24 14:24:18 +10:00