Skip to content

Commit f53e763

Browse files
committed
Fixed CI
1 parent 3c3c110 commit f53e763

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

test/anomaly_checks_test.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
require_relative "test_helper"
22

33
class AnomalyChecksTest < ActionDispatch::IntegrationTest
4+
def setup
5+
Blazer::Check.delete_all
6+
Blazer::Query.delete_all
7+
end
8+
49
def test_prophet
510
skip unless ENV["TEST_PROPHET"]
611

@@ -21,7 +26,7 @@ def test_anomaly_detection
2126

2227
def assert_anomaly(anomaly_checks)
2328
Blazer.stub(:anomaly_checks, anomaly_checks) do
24-
query = create_query(statement: "SELECT current_date + n AS day, 0.1 * random() FROM generate_series(1, 30) n")
29+
query = create_query(statement: "SELECT current_date + n AS day, 0.1 FROM generate_series(1, 30) n")
2530
check = create_check(query: query, check_type: "anomaly")
2631

2732
Blazer.run_checks(schedule: "5 minutes")

test/forecasting_test.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
require_relative "test_helper"
22

33
class ForecastingTest < ActionDispatch::IntegrationTest
4+
def setup
5+
Blazer::Query.delete_all
6+
end
7+
48
def test_prophet
59
skip unless ENV["TEST_PROPHET"]
610

0 commit comments

Comments
 (0)