mirror of
https://github.com/stashapp/stash.git
synced 2026-01-03 14:12:52 +01:00
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` |
||
|---|---|---|
| .. | ||
| job.go | ||
| manager.go | ||
| manager_test.go | ||
| progress.go | ||
| progress_test.go | ||
| subscribe.go | ||