mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03: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`