mirror of
https://github.com/ruby/ruby.git
synced 2026-10-29 17:06:21 +08:00
updated test/test_prime.rb with new method name
This commit is contained in:
1 parent
996517bdbb
commit
c8f780987f
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user