DEV: sets rack server to test env when using rake qunit:test (#7554)

DEV: sets rack server to test env when using rake qunit:test (#7554)

diff --git a/lib/tasks/qunit.rake b/lib/tasks/qunit.rake
index 4968840..dfb877e 100644
--- a/lib/tasks/qunit.rake
+++ b/lib/tasks/qunit.rake
@@ -46,6 +46,7 @@ task "qunit:test", [:timeout, :qunit_path] => :environment do |_, args|
     Discourse.after_fork
     Rack::Server.start(config: "config.ru",
                        AccessLog: [],
+                       environment: 'test',
                        Port: port)
     exit
   end

GitHub sha: 4a9756ff

1 Like