X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=perform-tests.py;h=b8c60795a4bc59dbe9fc912e2b84f8b7f8c569c5;hb=6108feca5a16dedf6e8f5b3a646eda6236c32c3d;hp=2f9eb8b212487cb0bc58eabda5bd40bbd08bd03f;hpb=0f7461ce9ddd800b7d04c2419a8f4bd113de27cd;p=patchq.git diff --git a/perform-tests.py b/perform-tests.py index 2f9eb8b..b8c6079 100755 --- a/perform-tests.py +++ b/perform-tests.py @@ -25,8 +25,10 @@ import tempfile import config +# Because tests are very long running, turn off heartbeats. +# https://stackoverflow.com/questions/14572020/handling-long-running-tasks-in-pika-rabbitmq connection = pika.BlockingConnection(pika.ConnectionParameters( - host = config.mq_server)) + host = config.mq_server, heartbeat_interval=0)) channel = connection.channel() def ack(method):