mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 22:21:55 +08:00
Revert "FIX: parallel spec system needs needs a dedicated upload folder for each worker. (#8372)"
This reverts commit 42e5176bc3
.
This commit is contained in:
parent
42e5176bc3
commit
d3e7768ea8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user