mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
15 lines
309 B
Ruby
15 lines
309 B
Ruby
# frozen_string_literal: true
|
|
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../../lib"
|
|
|
|
require 'test/unit'
|
|
require 'timeout'
|
|
|
|
class TestForTestTimeout < Test::Unit::TestCase
|
|
10.times do |i|
|
|
define_method("test_timeout_#{i}") do
|
|
Timeout.timeout(0.001) do
|
|
sleep
|
|
end
|
|
end
|
|
end
|
|
end
|