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