flori / file-tail

File::Tail for Ruby
http://flori.github.com/file-tail
Apache License 2.0
160 stars 19 forks source link

test_tail_change2 randomly fails on debian #12

Open boutil opened 5 years ago

boutil commented 5 years ago

Hi,

On Debian systems, the test test_tail_change2 has a tendency to fail (on my system, it sometimes passes, but fails about half of the time I would say). The bug is reported there with version 1.1.1, but happens also with 1.2: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=912249

Here is the output:

...........F
===============================================================================================
     350:     end
     351:     appender.join
     352:     logger.join
  => 353:     assert_equal(110, lines.size)
     354:     assert reopened
     355:     assert_equal 10, @in.lineno
     356:   end
/home/boutil/debian/ruby-team/ruby-file-tail/tests/file_tail_test.rb:353:in `test_tail_change2'
<110> expected but was
<20>

diff:
? 110
? 2  
Failure: test_tail_change2(FileTailTest)
===============================================================================================
........
Finished in 24.713305938 seconds.
-----------------------------------------------------------------------------------------------
20 tests, 70 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
95% passed
-----------------------------------------------------------------------------------------------
0.81 tests/s, 2.83 assertions/s

Thanks for any insight about the issue. I can run some commands to help you debugging if needed.

junaruga commented 5 years ago

Mac osx as well.

flori commented 1 month ago

I think it is fixed now.