Skip to content

Commit

Permalink
fix for getredash#2426 test
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Short committed Mar 26, 2019
1 parent 887a381 commit 6b0bbf3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,10 @@ def test_failure_extends_schedule(self):
Execution failures recorded for a query result in exponential backoff
for scheduling future execution.
"""
query = self.factory.create_query(schedule={'interval':'60', 'until':None, 'time': None, 'day_of_week':None}, schedule_failures=4)

query = self.factory.create_query(schedule={'interval':'60', 'until':None, 'time': None, 'day_of_week':None})
# can't be set in create_query due to gen_query_hash
query.schedule_failures = 4
retrieved_at = utcnow() - datetime.timedelta(minutes=16)
query_result = self.factory.create_query_result(
retrieved_at=retrieved_at, query_text=query.query_text,
Expand Down

0 comments on commit 6b0bbf3

Please sign in to comment.