Permalink
Browse files

Clean up test now that Outcall has an evoked callback.

  • Loading branch information...
1 parent dfc9d7b commit b9cc85a3b36ad20d85b3e00283df6215312fcf34 Samuel Tesla committed May 26, 2009
Showing with 3 additions and 7 deletions.
  1. +3 −6 spec/request_spec.rb
  2. +0 −1 spec/spec_helper.rb
@@ -111,14 +111,11 @@
results = TestDelegate.new
start_agents do |agent|
r = agent.request(:direct, '/echo_data', {}, :identities => [identity_for(:foo)], :delegate => results)
- # When this is all running locally, we need to do a little dance so we
- # don't stall the reactor. The actor will send some data that we can
- # then respond to.
- r.on_received do |data|
- r.put 'input' => 'foo' if {'data' => 'prompt'} === data
+ r.on_evoked do
+ r.put 'input' => 'foo'
end
end
- should_be_good(results, [{'data' => 'prompt'}, {'input' => 'foo'}])
+ should_be_good(results, [{'input' => 'foo'}])
end
end
View
@@ -85,7 +85,6 @@ def limited
operation "/echo_data"
def echo_data
- send_data 'data' => 'prompt'
recv_data do |data|
logger.debug "echo_data recv_data: #{data.inspect}"
send_data data

0 comments on commit b9cc85a

Please sign in to comment.