We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 246c4ad commit d6b241dCopy full SHA for d6b241d
1 file changed
test/async/task.rb
@@ -1000,27 +1000,6 @@ def sleep_forever
1000
result = parent.wait_all
1001
expect(result).to be == :result
1002
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
1023
1024
1025
1026
with "#result" do
0 commit comments