spec/deprecate/future_spec.rb in celluloid-0.17.0 vs spec/deprecate/future_spec.rb in celluloid-0.17.1
- old
+ new
@@ -23,10 +23,10 @@
expect(future).not_to be_ready
sleep CelluloidSpecs::TIMER_QUANTUM * 6
expect(future).to be_ready
end
- it "raises TimeoutError when the future times out" do
+ it "raises TaskTimeout when the future times out" do
future = Celluloid::Future.new { sleep 2 }
- expect { future.value(1) }.to raise_exception(Celluloid::TimeoutError)
+ expect { future.value(1) }.to raise_exception(Celluloid::TaskTimeout)
end
end unless $CELLULOID_BACKPORTED == false