ruby-changes:64601
From: Nobuyoshi <ko1@a...>
Date: Fri, 25 Dec 2020 22:24:13 +0900 (JST)
Subject: [ruby-changes:64601] 92f9f998fb (master): test/test_trick.rb: fixed the position to add timeout
https://git.ruby-lang.org/ruby.git/commit/?id=92f9f998fb From 92f9f998fb65c70941ea05ed33a7b9f351f308f7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 25 Dec 2020 22:23:53 +0900 Subject: test/test_trick.rb: fixed the position to add timeout diff --git a/test/test_trick.rb b/test/test_trick.rb index abdfbca..e37bda2 100644 --- a/test/test_trick.rb +++ b/test/test_trick.rb @@ -34,7 +34,7 @@ end https://github.com/ruby/ruby/blob/trunk/test/test_trick.rb#L34 class TestTRICK2015 < Test::Unit::TestCase def test_kinaba - src = File.join(__dir__, "../sample/trick2015/kinaba/entry.rb", timeout: 60) + src = File.join(__dir__, "../sample/trick2015/kinaba/entry.rb") # calculate the first 10000 digits of Pi n = 10000 @@ -44,7 +44,7 @@ class TestTRICK2015 < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/test_trick.rb#L44 end pi = "3#{ a - b }" - assert_in_out_err(["-W0", src], "", [pi]) + assert_in_out_err(["-W0", src], "", [pi], timeout: 60) assert_equal(pi[0, 242], Ripper.tokenize(File.read(src)).grep(/\S/).map{|t|t.size%10}.join) end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/