mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
updated test/test_prime.rb with new method name
This commit is contained in:
parent
996517bdbb
commit
c8f780987f
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ class TestPrime < Test::Unit::TestCase
|
|||
# simulates that Timeout.timeout interrupts Prime::EratosthenesSieve#extend_table
|
||||
def sieve.Integer(n)
|
||||
n = super(n)
|
||||
sleep 10 if /extend_table/ =~ caller.first
|
||||
sleep 10 if /compute_primes/ =~ caller.first
|
||||
return n
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue