Skip to content

Business intelligence made simple

Improved tests for anomaly checks [skip ci]

Andrew Kane09cc073c47d9
diff --git a/test/anomaly_checks_test.rb b/test/anomaly_checks_test.rb
index 37cd3b28..5a816e06 100644
--- a/test/anomaly_checks_test.rb
+++ b/test/anomaly_checks_test.rb
@@ -53,6 +53,12 @@ class AnomalyChecksTest < ActionDispatch::IntegrationTest
check.reload
assert_equal "error", check.state
assert_equal "Bad format", check.message
+
+ query.update!(statement: "SELECT current_date, 1 LIMIT 0")
+ Blazer.run_checks(schedule: "5 minutes")
+ check.reload
+ assert_equal "error", check.state
+ assert_equal "No data", check.message
end
end
end