Skip to content

Commit

Permalink
fix: Make flaky tests stable by rounding score values (#771)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianSchepersAA authored Apr 23, 2024
1 parent e4307c2 commit 3bb3875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/core/test_text_highlight.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,4 +309,4 @@ def test_highlight_clamps_end_correctly(
# then
assert result.highlights[0].start == start
assert result.highlights[0].end == end
assert result.highlights[0].score == score
assert abs(result.highlights[0].score - score) <= 0.005

0 comments on commit 3bb3875

Please sign in to comment.