Business intelligence made simple
Fixed CI
Andrew Kanef53e76382741
diff --git a/test/anomaly_checks_test.rb b/test/anomaly_checks_test.rbindex 46707661..ff9ce4ca 100644--- a/test/anomaly_checks_test.rb+++ b/test/anomaly_checks_test.rb@@ -1,6 +1,11 @@require_relative "test_helper"class AnomalyChecksTest < ActionDispatch::IntegrationTest+ def setup+ Blazer::Check.delete_all+ Blazer::Query.delete_all+ end+def test_prophetskip unless ENV["TEST_PROPHET"]@@ -21,7 +26,7 @@ class AnomalyChecksTest < ActionDispatch::IntegrationTestdef assert_anomaly(anomaly_checks)Blazer.stub(:anomaly_checks, anomaly_checks) do- query = create_query(statement: "SELECT current_date + n AS day, 0.1 * random() FROM generate_series(1, 30) n")+ query = create_query(statement: "SELECT current_date + n AS day, 0.1 FROM generate_series(1, 30) n")check = create_check(query: query, check_type: "anomaly")Blazer.run_checks(schedule: "5 minutes")diff --git a/test/forecasting_test.rb b/test/forecasting_test.rbindex 39bda92d..2d38952d 100644--- a/test/forecasting_test.rb+++ b/test/forecasting_test.rb@@ -1,6 +1,10 @@require_relative "test_helper"class ForecastingTest < ActionDispatch::IntegrationTest+ def setup+ Blazer::Query.delete_all+ end+def test_prophetskip unless ENV["TEST_PROPHET"]