Skip to content

Commit

Permalink
Fix rounding error in min latency unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmc2005 committed May 25, 2024
1 parent 6f019ac commit b819574
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_diarization.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ def test_call_min_latency(min_latency_config):

pred1_timeline = pred1.get_timeline()
pred2_timeline = pred2.get_timeline()
pred1_duration = pred1_timeline[-1].end - pred1_timeline[0].start
pred2_duration = pred2_timeline[-1].end - pred2_timeline[0].start
pred1_duration = round(pred1_timeline[-1].end - pred1_timeline[0].start, 3)
pred2_duration = round(pred2_timeline[-1].end - pred2_timeline[0].start, 3)

expected_duration = round(min_latency_config.duration, 3)
expected_step = round(min_latency_config.step, 3)
Expand Down

0 comments on commit b819574

Please sign in to comment.