Skip to content

Commit

Permalink
Merge pull request #4129 from open-formulieren/chore/fix-pickle-error…
Browse files Browse the repository at this point in the history
…-flaky-test

Further improvements to flaky test
  • Loading branch information
sergei-maertens authored Apr 8, 2024
2 parents 1d7e747 + cb2960c commit 105d75e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/openforms/formio/tests/test_api_fileupload.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,11 @@ def test_cannot_connect_to_clamdav(self, m_config):
)
class ConcurrentUploadTests(SubmissionsMixin, APITransactionTestCase):

@retry(stop=stop_after_attempt(3), retry=retry_if_exception_type(AssertionError))
@retry(
stop=stop_after_attempt(3),
retry=retry_if_exception_type(AssertionError),
reraise=True,
)
@tag("gh-3858")
def test_concurrent_file_uploads(self):
submission = SubmissionFactory.from_components(
Expand Down Expand Up @@ -412,5 +416,7 @@ def do_upload() -> str:
for _key in entries:
_, _, key = _key.split(":", 2)
print(f" key: {key}\nvalue: {cache.get(key)}\n")
# clear cache for next run
cache.clear()

self.assertEqual(session_uuids, uuids)

0 comments on commit 105d75e

Please sign in to comment.