fix: try to fix the apparent races with a xdist group for the tests

This commit is contained in:
j4n
2026-08-27 16:12:54 +02:00
parent b9fc3ef550
commit 81df41d62d
2 changed files with 3 additions and 0 deletions
@@ -255,6 +255,7 @@ def test_rewrite_subject(cmsetup, maildata):
assert "Subject: Unencrypted subject" not in rcvd_msg
@pytest.mark.xdist_group(name="serial_relay_state")
def test_exceed_rate_limit(cmsetup, gencreds, maildata, chatmail_config):
"""Test that the per-account send-mail limit is exceeded."""
user1, user2 = cmsetup.gen_users(2)
@@ -277,6 +278,7 @@ def test_exceed_rate_limit(cmsetup, gencreds, maildata, chatmail_config):
pytest.fail("Rate limit was not exceeded")
@pytest.mark.xdist_group(name="serial_relay_state")
def test_expunged(remote, chatmail_config):
outdated_days = int(chatmail_config.delete_mails_after) + 1
find_cmds = [
@@ -79,6 +79,7 @@ class TestEndToEndDeltaChat:
msg2 = ac2.wait_for_incoming_msg()
assert msg2.get_snapshot().text == "message0"
@pytest.mark.xdist_group(name="serial_relay_state")
def test_exceed_quota(
self, cmfactory, lp, tmpdir, remote, chatmail_config, sshdomain
):