DEV: Raise exceptions when jobs fail in test mode

Previously jobs would fail silently in test mode. Now they will raise the exception and cause the relevant test to fail. This identified a few broken tests, which I will fix in a followup commit
This commit is contained in:
David Taylor
2019-04-08 15:57:47 +01:00
parent 5e68c5f851
commit 20cda5d689
2 changed files with 10 additions and 2 deletions

View File

@@ -54,6 +54,8 @@ module Discourse
current_db: cm.current_db,
current_hostname: cm.current_hostname
}.merge(context))
raise ex if Rails.env.test?
end
# Expected less matches than what we got in a find