Skip to content

Commit

Permalink
Fix unit test for pika 0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marionleborgne committed Oct 8, 2017
1 parent b74c683 commit cf6ec3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cloudbrain/publishers/rabbitmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def register(self, metric_name, num_channels, buffer_size=1):

def _rabbitmq_register(self, routing_key):
channel = self.connection.channel()
channel.exchange_declare(exchange=routing_key, type='direct')
channel.exchange_declare(exchange=routing_key, exchange_type='direct')
self.channels[routing_key] = channel

def publish(self, metric_name, data):
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/openbci_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(self):
self.message_published = None


def exchange_declare(self, exchange, type):
def exchange_declare(self, exchange, exchange_type):
pass


Expand Down

0 comments on commit cf6ec3c

Please sign in to comment.