Issue #16189 has been reported by znz (Kazuhiro NISHIYAMA).

----------------------------------------
Bug #16189: Some rubygems tests failed when run across 0:00 UTC
https://bugs.ruby-lang.org/issues/16189

* Author: znz (Kazuhiro NISHIYAMA)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
Some tests failed because https://github.com/ruby/ruby/blob/649a64ae29318501472f74798a12eb60871ab990/lib/rubygems/specification.rb#L106-L107 set TODAY as 2019-09-29, and tests run on 2019-09-30.

https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris11s-sunc/ruby-master/log/20190929T232504Z.fail.html.gz

```
  1) Failure:
TestGemSpecification#test_to_ruby_for_cache [/export/home/rubyci/chkbuild-sunc/tmp/build/20190929T232504Z/ruby/test/rubygems/test_gem_specification.rb:2518]:
--- expected
+++ actual
@@ -18,7 +18,7 @@
 " +
 "  s.authors = [\"A User\".freeze]
 " +
-"  s.date = \"2019-09-29\"
+"  s.date = \"2019-09-30\"
 " +
 "  s.description = \"This is a test description\".freeze
 " +


  2) Failure:
TestGemSpecification#test_metadata_specs [/export/home/rubyci/chkbuild-sunc/tmp/build/20190929T232504Z/ruby/test/rubygems/test_gem_specification.rb:3651]:
--- expected
+++ actual
@@ -20,7 +20,7 @@
 " +
 "  s.authors = [\"A User\".freeze]
 " +
-"  s.date = \"2019-09-30\"
+"  s.date = \"2019-09-29\"
 " +
 "  s.description = \"This is a test description\".freeze
 " +


  3) Failure:
TestGemSpecification#test_to_ruby [/export/home/rubyci/chkbuild-sunc/tmp/build/20190929T232504Z/ruby/test/rubygems/test_gem_specification.rb:2441]:
--- expected
+++ actual
@@ -18,7 +18,7 @@
 " +
 "  s.authors = [\"A User\".freeze]
 " +
-"  s.date = \"2019-09-29\"
+"  s.date = \"2019-09-30\"
 " +
 "  s.description = \"This is a test description\".freeze
 " +


  4) Failure:
TestGemSpecification#test_to_ruby_fancy [/export/home/rubyci/chkbuild-sunc/tmp/build/20190929T232504Z/ruby/test/rubygems/test_gem_specification.rb:2581]:
--- expected
+++ actual
@@ -22,7 +22,7 @@
 " +
 "  s.authors = [\"A User\".freeze]
 " +
-"  s.date = \"2019-09-29\"
+"  s.date = \"2019-09-30\"
 " +
 "  s.description = \"This is a test description\".freeze
 " +


  5) Failure:
TestGemSpecification#test_self_load_legacy_ruby [/export/home/rubyci/chkbuild-sunc/tmp/build/20190929T232504Z/ruby/test/rubygems/test_gem_specification.rb:1038]:
Expected: 2019-09-29 00:00:00 UTC
  Actual: 2019-09-30 00:00:00 UTC

  6) Failure:
TestGemSpecification#test_to_ruby_with_rsa_key [/export/home/rubyci/chkbuild-sunc/tmp/build/20190929T232504Z/ruby/test/rubygems/test_gem_specification.rb:2474]:
--- expected
+++ actual
@@ -18,7 +18,7 @@
 " +
 "  s.authors = [\"A User\".freeze]
 " +
-"  s.date = \"2019-09-29\"
+"  s.date = \"2019-09-30\"
 " +
 "  s.description = \"This is a test description\".freeze
 " +


  7) Failure:
TestGemSpecification#test_date [/export/home/rubyci/chkbuild-sunc/tmp/build/20190929T232504Z/ruby/test/rubygems/test_gem_specification.rb:1697]:
Expected: 2019-09-29 00:00:00 UTC
  Actual: 2019-09-30 00:00:00 UTC
```



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

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>