Skip to content

Commit

Permalink
Fix flaky test by rounding off floats
Browse files Browse the repository at this point in the history
  • Loading branch information
albertyw authored and avelis committed Dec 5, 2017
1 parent 61e62fd commit 99b0cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_time_spent_filter(self):
query_set = time_taken_filter.contribute_to_query_set(query_set)
filtered = query_set.filter(time_taken_filter)
for f in filtered:
self.assertGreaterEqual(f.time_taken, c)
self.assertGreaterEqual(round(f.time_taken), round(c))

def test_status_code_filter(self):
requests = [mock_suite.mock_request() for _ in range(0, 50)]
Expand Down

0 comments on commit 99b0cd0

Please sign in to comment.