Skip to content

Commit

Permalink
Make recheck_precompiled_assets spec temp directory same as assets sp…
Browse files Browse the repository at this point in the history
…ec temp directory

Fixes nondeterministic failures when running parallel specs in
the same directory.
  • Loading branch information
jeremyevans committed Mar 22, 2024
1 parent f55eab3 commit f6cc4d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/plugin/recheck_precompiled_assets_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
end

if run_tests
pid_dir = "spec/assets/#{$$}"
pid_dir = "spec/pid-#{$$}"
assets_dir = File.join(pid_dir, "tmp")
metadata_file = File.expand_path(File.join(assets_dir, 'precompiled.json'))
describe 'recheck_precompiled_assets plugin' do
Expand Down

0 comments on commit f6cc4d9

Please sign in to comment.