FIX: Multisite spec was failing in parallel environment

We were not adding the test number to the path in all places.
This commit is contained in:
Robin Ward 2020-04-22 14:04:45 -04:00
parent b810fc282d
commit 80a572d3b7

View File

@ -247,7 +247,9 @@ class S3Helper
end
def multisite_upload_path
File.join("uploads", RailsMultisite::ConnectionManagement.current_db, "/")
path = File.join("uploads", RailsMultisite::ConnectionManagement.current_db, "/")
return path unless Discourse.is_parallel_test?
File.join(path, ENV['TEST_ENV_NUMBER'].presence || '1', "/")
end
def s3_resource