Skip to content

Commit

Permalink
Fix queue tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Nov 20, 2015
1 parent f1ba2bc commit e71cf35
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ckanext/harvest/tests/test_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ def setup_class(cls):
def test_01_basic_harvester(self):

### make sure queues/exchanges are created first and are empty
consumer = queue.get_consumer('ckan.harvest.test.gather', 'harvest_job_id')
consumer_fetch = queue.get_consumer('ckan.harvest.test.fetch', 'harvest_object_id')
consumer = queue.get_consumer('ckan.harvest.test.gather',
queue.get_gather_routing_key())
consumer_fetch = queue.get_consumer('ckan.harvest.test.fetch',
queue.get_fetch_routing_key())
consumer.queue_purge(queue='ckan.harvest.test.gather')
consumer_fetch.queue_purge(queue='ckan.harvest.test.fetch')

Expand Down

0 comments on commit e71cf35

Please sign in to comment.