Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

make eager loading in test easier with EAGER_LOAD=1

Christophe Bliardfbea927c96e7
diff --git a/config/environments/test.rb b/config/environments/test.rb
index 022b5405d56..df4a0eb49fe 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -40,7 +40,7 @@ OpenProject::Application.configure do
# Use eager load to mirror the production environment
# on travis
- config.eager_load = ENV['CI'].present?
+ config.eager_load = ENV['CI'].present? || ENV['EAGER_LOAD'].present?
# This setting is false by default, but we define it explicitly
config.allow_concurrency = false