Skip to content

Commit

Permalink
use assert_operator instead of assert
Browse files Browse the repository at this point in the history
minitest style guide adherence.
encountered an intermittent unit test failure so assert_operator will provide
better failure feedback than assert
  • Loading branch information
alexskr committed Sep 13, 2023
1 parent 020ca5d commit ac798aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_scheduler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_scheduler
sleep(5)
finished_array = listen_string.split("\n")

assert finished_array.length >= 4
assert_operator 4, :<=, finished_array.length

assert job1_thread.alive?
job1_thread.kill
Expand Down

0 comments on commit ac798aa

Please sign in to comment.