Gitlab::Shell.secret_token race condition on specs
An occurrence -> https://gitlab.com/gitlab-org/gitlab-ce/builds/5063239
1) Gitlab::Shell memoized secret_token creates and links the secret token file
Failure/Error: expect(File.read(secret_file).chomp).to eq(secret_token)
expected: "88d0e7afe2ecdd9d6cab9e4199535ea2"
got: "a7e9573372987933e2cb44a32611a8ec"
(compared using ==)
# ./spec/lib/gitlab/backend/shell_spec.rb:45:in `block (3 levels) in <top (required)>'
On the specs we're not providing a deterministic context, so if other spec set the secret_token
when reading here could not be the expected one