diff options
author | Omer Katz <omer.drow@gmail.com> | 2019-03-19 11:02:47 +0200 |
---|---|---|
committer | Omer Katz <omer.drow@gmail.com> | 2019-03-19 11:02:47 +0200 |
commit | 64f60e6a04cdd01c8fe0b7b998eca8cbf8c3a140 (patch) | |
tree | 3a829a2b262adf34c2af65903a137f892b906980 | |
parent | befd27092675e116e6c0c839a02ed9b6d761c98c (diff) | |
download | py-amqp-64f60e6a04cdd01c8fe0b7b998eca8cbf8c3a140.tar.gz |
Mark integration tests as flaky.
-rw-r--r-- | requirements/test.txt | 1 | ||||
-rw-r--r-- | t/integration/test_rmq.py | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/requirements/test.txt b/requirements/test.txt index d523f9e..d7d4185 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -1,3 +1,4 @@ case>=1.3.1 pytest>=3.0 pytest-sugar>=0.9.1 +pytest-rerunfailures>=6.0 diff --git a/t/integration/test_rmq.py b/t/integration/test_rmq.py index e5f0496..5499c62 100644 --- a/t/integration/test_rmq.py +++ b/t/integration/test_rmq.py @@ -16,6 +16,7 @@ def connection(request): @pytest.mark.env('rabbitmq') +@pytest.mark.flaky(reruns=5, reruns_delay=2) def test_connect(connection): connection.connect() connection.close() @@ -45,6 +46,7 @@ class test_rabbitmq_operations(): ('basic_publish_confirm', True, False), ) ) + @pytest.mark.flaky(reruns=5, reruns_delay=2) def test_publish_consume(self, publish_method, mandatory, immediate): callback = Mock() self.channel.queue_declare( @@ -116,6 +118,7 @@ class test_rabbitmq_operations(): self.channel.basic_ack(msg.delivery_tag) + @pytest.mark.flaky(reruns=5, reruns_delay=2) def test_publish_get(self): self.channel.queue_declare( queue='py-amqp-unittest', durable=False, exclusive=True |