Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some tolerance fro test_bench_results
Browse files Browse the repository at this point in the history
Akirathan committed Dec 11, 2024
1 parent af749fa commit 5074fd4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -52,7 +52,8 @@ async def test_get_bench_run(self):
self.assertGreater(len(bench_runs), 0)
bench_run = bench_runs[0]
commit_ts = parse_commit_timestamp(bench_run.head_commit)
self.assertLess(since, commit_ts)
# There are, let's say, 2 days tolerance
self.assertLess(datetime.fromisoformat("2023-09-28"), commit_ts)
self.assertGreater(until, commit_ts)

async def test_get_bench_report(self):

0 comments on commit 5074fd4

Please sign in to comment.