tests: fix amcheck job tests.
This commit is contained in:
@@ -12,7 +12,7 @@ class AmcheckDatabaseJob < ApplicationJob
|
||||
end
|
||||
|
||||
def notify(output)
|
||||
DanbooruLogger.info(output)
|
||||
DanbooruLogger.info(output) unless Rails.env.test?
|
||||
Dmail.create_automated(to: User.owner, title: "pg_amcheck failed", body: output)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -3,6 +3,7 @@ require 'test_helper'
|
||||
class AmcheckDatabaseJobTest < ActiveJob::TestCase
|
||||
context "AmcheckDatabaseJob" do
|
||||
should "work" do
|
||||
create(:owner_user)
|
||||
AmcheckDatabaseJob.perform_now
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user