blob: dfa863b3734e0977a32e1928e4309a9c53932476 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
require 'test/unit'
require 'timeout'
require 'thread'
class TestTimeout < Test::Unit::TestCase
def test_queue
q = Queue.new
assert_raise(Timeout::Error, "[ruby-dev:32935]") {
timeout(0.1) { q.pop }
}
end
end
|