Skip to content

Commit dfbbfe7

Browse files
committed
Remove unreliable timeout spec
1 parent 7ea2082 commit dfbbfe7

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

spec/ruby/library/timeout/timeout_spec.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,6 @@
1818
end.should raise_error(StandardError)
1919
end
2020

21-
it "does not wait too long" do
22-
before_time = Time.now
23-
lambda do
24-
Timeout.timeout(1, StandardError) do
25-
sleep 3
26-
end
27-
end.should raise_error(StandardError)
28-
29-
(Time.now - before_time).should be_close(1.0, 0.5)
30-
end
31-
3221
it "returns back the last value in the block" do
3322
Timeout.timeout(1) do
3423
42
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
slow:Timeout.timeout raises Timeout::Error when it times out with no specified error type
22
slow:Timeout.timeout raises specified error type when it times out
3-
slow:Timeout.timeout does not wait too long
43
slow:Timeout.timeout returns back the last value in the block
54
aot:Timeout.timeout raises Timeout::Error when it times out with no specified error type
65
aot:Timeout.timeout raises specified error type when it times out
7-
aot:Timeout.timeout does not wait too long

0 commit comments

Comments
 (0)