Skip to content

Commit

Permalink
Update expected timestamp tolerance to up to 50ms
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmc2005 committed May 25, 2024
1 parent 09b85bb commit a93d858
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_end_to_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def test_benchmark(make_config, source_file, latency):
for track1, track2 in zip(pred.itertracks(yield_label=True), expected.itertracks(yield_label=True)):
pred_segment, _, pred_spk = track1
expected_segment, _, expected_spk = track2
assert math.isclose(pred_segment.start, expected_segment.start, abs_tol=1e-3)
assert math.isclose(pred_segment.end, expected_segment.end, abs_tol=1e-3)
# We can tolerate a difference of up to 50ms
assert math.isclose(pred_segment.start, expected_segment.start, abs_tol=0.05)
assert math.isclose(pred_segment.end, expected_segment.end, abs_tol=0.05)
assert pred_spk == expected_spk

0 comments on commit a93d858

Please sign in to comment.