Skip to content

Commit d6b241d

Browse files
committed
Remove bad test - failed tasks are no longer children.
1 parent 246c4ad commit d6b241d

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

test/async/task.rb

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,27 +1000,6 @@ def sleep_forever
10001000
result = parent.wait_all
10011001
expect(result).to be == :result
10021002
end
1003-
1004-
it "will propagate exceptions from child tasks" do
1005-
failed_child = nil
1006-
1007-
reactor.run do |parent|
1008-
failed_child = parent.async(finished: false) do |child|
1009-
child.yield
1010-
raise RuntimeError, "child task failed"
1011-
end
1012-
1013-
# Wait for the failed child to fail first
1014-
reactor.run
1015-
1016-
expect(failed_child).to be(:finished?)
1017-
1018-
# wait_all should propagate the exception when it calls wait on the failed child
1019-
expect do
1020-
parent.wait_all
1021-
end.to raise_exception(RuntimeError, message: be =~ /child task failed/)
1022-
end
1023-
end
10241003
end
10251004

10261005
with "#result" do

0 commit comments

Comments
 (0)