mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:15:05 +08:00
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:
parent
b810fc282d
commit
80a572d3b7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user