Issue #8195 has been updated by hasari (Hiro Asari).


On a second thought, this seems to be a poorly chosen "example". You can close this ticket. If I come across a better example, I'll open a new one.

Sorry for the noise.
----------------------------------------
Bug #8195: Time-dependent tests
https://bugs.ruby-lang.org/issues/8195#change-38075

Author: hasari (Hiro Asari)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 2.1.0dev (2013-03-31 trunk 40019) [x86_64-linux]


There are some tests that depend on timing of the execution, and fail sporadically.

I have not surveyed the entire suite, but one is pointed out in https://github.com/jruby/jruby/issues/618.

https://github.com/ruby/ruby/blob/v1_8_7_371/test/zlib/test_zlib.rb#L318
https://github.com/ruby/ruby/blob/v1_9_3_392/test/zlib/test_zlib.rb#L293
https://github.com/ruby/ruby/blob/v2_0_0_0/test/zlib/test_zlib.rb#L469

https://github.com/ruby/ruby/blob/6a23960/test/zlib/test_zlib.rb#L471

Perhaps defining a margin of error might be permissible.


-- 
http://bugs.ruby-lang.org/