Skip to content

Commit

Permalink
Re-introduce time checking in __check_request
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaris committed Nov 30, 2023
1 parent b1c7054 commit 0f2babb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions indra/tests/test_db_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def __check_request(seconds, *args, **kwargs):
time_taken = datetime.now() - now
if check_stmts:
assert resp.statements, "Got no statements."
assert time_taken.total_seconds() < seconds, \
"Request took too long: %s" % time_taken.total_seconds()
return resp


Expand Down

0 comments on commit 0f2babb

Please sign in to comment.