Skip to content

Commit

Permalink
Remove a few more uses of the :immediate option
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Klishin committed Dec 2, 2012
1 parent e1e1dee commit 93c4196
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions spec/integration/coolio/basic_return_spec.rb
Expand Up @@ -15,7 +15,7 @@
coolio_amqp_connect do |client|
channel = AMQ::Client::Channel.new(client, 1)
channel.open do
queue = AMQ::Client::Queue.new(client, channel).declare(false, false, false, true)
queue = AMQ::Client::Queue.new(client, channel).declare(false, false, false, false)

# need to delete the queue manually because we don't start consumption,
# hence, no auto-delete
Expand All @@ -26,7 +26,7 @@
end

messages.each do |message|
exchange.publish(message, AMQ::Protocol::EMPTY_STRING, {}, false, true)
exchange.publish(message, AMQ::Protocol::EMPTY_STRING, {}, false, false)
end
end

Expand All @@ -36,4 +36,4 @@
@returned_messages.should == ["NO_CONSUMERS"] * messages.size
end
end
end
end
4 changes: 2 additions & 2 deletions spec/integration/eventmachine/basic_return_spec.rb
Expand Up @@ -15,7 +15,7 @@
em_amqp_connect do |client|
channel = AMQ::Client::Channel.new(client, 1)
channel.open do
queue = AMQ::Client::Queue.new(client, channel).declare(false, false, false, true)
queue = AMQ::Client::Queue.new(client, channel).declare(false, false, false, false)
# need to delete the queue manually because we don't start consumption,
# hence, no auto-delete
delayed(0.4) { queue.delete }
Expand All @@ -37,4 +37,4 @@
@returned_messages.should == ["NO_CONSUMERS"] * messages.size
end
end
end
end
Expand Up @@ -57,7 +57,7 @@
30.times do
Thread.new do
messages.each do |message|
exchange.publish(message, queue.name, {}, false, true)
exchange.publish(message, queue.name, {}, false, false)
end
end
end
Expand All @@ -76,4 +76,4 @@
end # it
end # context
end # describe
end
end

0 comments on commit 93c4196

Please sign in to comment.