Skip to content

Commit

Permalink
Add tmp dir back in
Browse files Browse the repository at this point in the history
  • Loading branch information
svanhesteren committed Jun 10, 2024
1 parent a38aee1 commit adabc5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
- name: "Tests and Lint"
run: bundle exec rake
env:
TEST_TMP_DIR: ${{ vars.RUNNER_TEMP }}
PGHOST: localhost
PGUSER: postgres
PGPASSWORD: postgres
2 changes: 1 addition & 1 deletion test/gouda/worker_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class GoudaWorkerTest < ActiveSupport::TestCase
# We need to include the PID in the path, because we might be running
# multiple test processes on the same box - and they might start touching
# files from each other.
PATH_TO_TEST_FILE = -> { Tempfile.new("#{Process.pid}-gouda-worker-test-output.bin") }
PATH_TO_TEST_FILE = -> { File.expand_path(File.join(ENV["TEST_TMP_DIR"] || "tmp", "#{Process.pid}-gouda-worker-test-output.bin")) }

class JobWithEnqueueKey < ActiveJob::Base
self.queue_adapter = :gouda
Expand Down

0 comments on commit adabc5e

Please sign in to comment.