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 e5af586 commit ba7738aCopy full SHA for ba7738a
test/async/task.rb
@@ -298,19 +298,21 @@
298
end
299
300
it "reports failed status for failed tasks" do
301
- task = reactor.async do
302
- raise "Test failure"
303
- end
304
-
305
- # Wait for the task to fail
306
- begin
307
- task.wait
308
- rescue
309
- # Expected
+ reactor.run do
+ task = reactor.async do
+ raise "Test failure"
+ end
+
+ # Wait for the task to fail
+ begin
+ task.wait
+ rescue
310
+ # Expected
311
312
313
+ expect(task.status).to be == :failed
314
+ expect(task.failed?).to be == true
315
- expect(task.status).to be == :failed
- expect(task.failed?).to be == true
316
317
318
it "status changes reflect task lifecycle" do
0 commit comments