Skip to content

Commit

Permalink
Add test for proxy -> promise.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Dec 7, 2023
1 parent 0d661a3 commit 98fddf4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/async/actor/proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@

expect(actor.delete(:foo, return_value: :ignore)).to be == nil
end

it "can wait for the result" do
actor[:foo] = 1

variable = actor.delete(:foo, return_value: :promise)

expect(variable.get).to be == 1
end
end

describe Async::Actor::Proxy::Finalizer do
Expand Down

0 comments on commit 98fddf4

Please sign in to comment.