Revert "FIX: parallel spec system needs needs a dedicated upload folder for each worker. (#8372)"

This reverts commit 42e5176bc3.
This commit is contained in:
Vinoth Kannan 2019-11-19 15:02:18 +05:30
parent 42e5176bc3
commit d3e7768ea8

View File

@ -31,13 +31,7 @@ module FileStore
end
def upload_path
if ENV['RAILS_ENV'] != "test" || !ENV['TEST_ENV_NUMBER']
return File.join("uploads", RailsMultisite::ConnectionManagement.current_db)
end
# Parallel spec system
n = ENV['TEST_ENV_NUMBER'].presence || '1'
File.join("uploads", RailsMultisite::ConnectionManagement.current_db, n)
File.join("uploads", RailsMultisite::ConnectionManagement.current_db)
end
def has_been_uploaded?(url)