Skip to content

Commit d971ffe

Browse files
fix: flaky test due to parallel workers (#29)
1 parent 6b87150 commit d971ffe

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/generators/adr_generator_test.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
class ADRGeneratorTest < Rails::Generators::TestCase
77
tests AdrGenerator
88
destination Rails.root.join("tmp/generator_tests")
9-
setup :prepare_destination
9+
10+
setup do
11+
self.destination_root = Rails.root.join("tmp", "generator_tests_#{Process.pid}")
12+
prepare_destination
13+
end
1014

1115
test "creates adr file with sequential number" do
1216
run_generator [ "use_postgres_as_primary_database" ]

0 commit comments

Comments
 (0)