mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Separate test used by test_ractor for Ractor in test_time.rb
This commit is contained in:
parent
270b16e70c
commit
01f131457f
1 changed files with 4 additions and 2 deletions
|
@ -64,8 +64,10 @@ class TestTimeExtension < Test::Unit::TestCase # :nodoc:
|
|||
|
||||
if defined?(Ractor)
|
||||
def test_rfc2822_ractor
|
||||
assert_ractor(<<~RUBY, require: 'time')
|
||||
actual = Ractor.new { Time.rfc2822("Fri, 21 Nov 1997 09:55:06 -0600") }.take
|
||||
assert_equal(Time.utc(1997, 11, 21, 9, 55, 6) + 6 * 3600, actual)
|
||||
RUBY
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue