From 50d5342586995ac4ea181e3da634be5ebb894dd8 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Mon, 10 Feb 2025 17:29:17 +0800 Subject: [PATCH] tests: I don't know why but these tests are flaky --- tests/test_android_sdk.py | 1 + tests/test_launchpad.py | 1 + tests/test_ubuntupkg.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_android_sdk.py b/tests/test_android_sdk.py index 758e889..3ca8639 100644 --- a/tests/test_android_sdk.py +++ b/tests/test_android_sdk.py @@ -5,6 +5,7 @@ import pytest pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] +@pytest.mark.flaky(reruns=10) async def test_android_addon(get_version): assert await get_version("android-google-play-apk-expansion", { "source": "android_sdk", diff --git a/tests/test_launchpad.py b/tests/test_launchpad.py index 6184b5d..6417b3c 100644 --- a/tests/test_launchpad.py +++ b/tests/test_launchpad.py @@ -3,6 +3,7 @@ import pytest pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] +@pytest.mark.flaky(reruns=10) async def test_launchpad(get_version): version = await get_version( "sakura", diff --git a/tests/test_ubuntupkg.py b/tests/test_ubuntupkg.py index 8622896..060dfa7 100644 --- a/tests/test_ubuntupkg.py +++ b/tests/test_ubuntupkg.py @@ -26,7 +26,7 @@ async def test_ubuntupkg_suite(get_version): "suite": "xenial", }) == "0.1.2-1" -@pytest.mark.flaky +@pytest.mark.flaky(reruns=10) async def test_ubuntupkg_suite_with_paging(get_version): assert await get_version("ffmpeg", { "source": "ubuntupkg",