From 882f90b5ffdb320b723b6b82ee1fde80b32bc048 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Fri, 5 Jun 2020 19:55:16 +0200 Subject: [PATCH] more cleanups, don't run the test 30 times anymore -- it's too wasteful and doesn't gurantee test failure. --- python/tests/test_account.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/python/tests/test_account.py b/python/tests/test_account.py index 1ca6a15b3..fadedc502 100644 --- a/python/tests/test_account.py +++ b/python/tests/test_account.py @@ -1751,9 +1751,7 @@ class TestDirectImap: out = file.getvalue().lower() assert "arch" in out - @pytest.mark.ignored - @pytest.mark.parametrize('i', range(30)) - def test_mark_read_on_server(self, acfactory, lp, i): + def test_mark_read_on_server(self, acfactory, lp): ac1 = acfactory.get_online_configuring_account() ac2 = acfactory.get_online_configuring_account(mvbox=True, move=True) @@ -1763,8 +1761,6 @@ class TestDirectImap: ac2.start_io() imap2 = acfactory.new_imap_conn(ac2, config_folder="mvbox") - - # imap2.mark_all_read() assert imap2.get_unread_cnt() == 0 chat = get_chat(ac1, ac2) @@ -1796,9 +1792,7 @@ class TestDirectImap: time.sleep(1) # We might need to wait because Imaplib is slower than DC-Core assert imap2.get_unread_cnt() == 0 - @pytest.mark.ignored - @pytest.mark.parametrize('i', range(30)) - def test_mark_bcc_read_on_server(self, acfactory, lp, i): + def test_mark_bcc_read_on_server(self, acfactory, lp): ac1 = acfactory.get_online_configuring_account(mvbox=True, move=True) ac2 = acfactory.get_online_configuring_account()