summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-05-12 23:31:24 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-13 09:26:13 +0900
commit9484f9ebdf675f71811a5583c1af2415b26c932f (patch)
tree9f06241b4c7d1d57f3a3b10806d418d735947d08 /parse.y
parent9225352bf1b6f66578f848180ead23bc3eb3e219 (diff)
[rubygems/rubygems] Use `Time.stub :now` to avoid a random failure
Essentially this reverts 45464bfcbdf9f9cfb440950bc57a27d237627a17. The commit removed a mock of Time.now, which caused a random failure. http://rubyci.s3.amazonaws.com/ubuntu1804/ruby-master/log/20210512T123004Z.fail.html.gz ``` 1) Failure: TestGemPackageTarWriter#test_add_file_signer [/home/chkbuild/chkbuild/tmp/build/20210512T123004Z/ruby/test/rubygems/test_gem_package_tar_writer.rb:117]: Field mtime of the tar header differs.. <"14046746312\u0000"> expected but was <"14046746311\x00">. ``` Object#stub is defined at f1af59fe02ef2cc58f13e2742e4cc6cf8c2a1a20, so now `Time.stub :now` works. https://github.com/rubygems/rubygems/commit/85f60a9ed0
Diffstat (limited to 'parse.y')
0 files changed, 0 insertions, 0 deletions