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

This commit is contained in:
Vinoth Kannan
2019-12-18 11:21:57 +05:30
committed by GitHub
parent f59647cd55
commit 3b7f5db5ba
16 changed files with 142 additions and 121 deletions

View File

@ -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