mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: parallel spec system needs a dedicated upload folder for each worker. (#8547)
This commit is contained in:
@ -837,6 +837,10 @@ module Discourse
|
||||
def self.redis
|
||||
$redis
|
||||
end
|
||||
|
||||
def self.is_parallel_test?
|
||||
ENV['RAILS_ENV'] == "test" && ENV['TEST_ENV_NUMBER']
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Style/GlobalVars
|
||||
|
Reference in New Issue
Block a user