From 48c7331db64f54ce325c9b2f2e844456cc924bdc Mon Sep 17 00:00:00 2001
From: Sascha Klawohn <sascha.klawohn@physik.hu-berlin.de>
Date: Wed, 2 Apr 2025 10:55:30 +0200
Subject: [PATCH] Mark group owner test as fallible

---
 tests/app/v1/routers/test_groups.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/app/v1/routers/test_groups.py b/tests/app/v1/routers/test_groups.py
index ef0ba7f05e..9d88090a4f 100644
--- a/tests/app/v1/routers/test_groups.py
+++ b/tests/app/v1/routers/test_groups.py
@@ -183,6 +183,10 @@ def test_get_group_invalid(
 # tests using group fixtures with scope: 'function' (default)
 
 
+# This test is flaky.
+# The last check (whether changes propagated to the DB) fails sometimes, even when
+# retrying multiple times for up to over a minute. If it succeeds, it does so immediately.
+@pytest.mark.xfail(strict=False)
 def test_owner_not_member(auth_headers, client, group_molds, group_owner_not_member):
     ref_group = group_molds['owner_not_member_ref']
 
-- 
GitLab