Update tests

This commit is contained in:
ari
2022-12-04 14:36:40 +03:00
parent 6b2fe8f329
commit afa47c6463
2 changed files with 3 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ module RabbitCarrots
class Connection
include ::Singleton
attr_reader :connection
def initialize
@connection = Bunny.new(
host: RabbitCarrots.configuration.rabbitmq_host,
@@ -16,11 +16,11 @@ module RabbitCarrots
@connection.start
end
def channel
@channel ||= ConnectionPool.new do
connection.create_channel
end
end
end
end
end