From 19f41bd348c95367fff87ce0daafd707239b0878 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 26 Jun 2022 18:23:36 +0000 Subject: [PATCH] enable rerun only for a single test --- python/tests/test_0_complex_or_slow.py | 1 + python/tox.ini | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/python/tests/test_0_complex_or_slow.py b/python/tests/test_0_complex_or_slow.py index 5390ff44d..8482c83dc 100644 --- a/python/tests/test_0_complex_or_slow.py +++ b/python/tests/test_0_complex_or_slow.py @@ -5,6 +5,7 @@ import pytest class TestGroupStressTests: + @pytest.mark.flaky(reruns=2) def test_group_many_members_add_leave_remove(self, acfactory, lp): accounts = acfactory.get_online_accounts(5) acfactory.introduce_each_other(accounts) diff --git a/python/tox.ini b/python/tox.ini index 74cc1c554..c6ff93035 100644 --- a/python/tox.ini +++ b/python/tox.ini @@ -8,7 +8,7 @@ envlist = [testenv] commands = - pytest -n6 --extra-info --reruns 2 --reruns-delay 5 -v -rsXx --ignored --strict-tls {posargs: tests examples} + pytest -n6 --extra-info -v -rsXx --ignored --strict-tls {posargs: tests examples} pip wheel . -w {toxworkdir}/wheelhouse --no-deps passenv = DCC_RS_DEV