diff --git a/tests/test_savanna.py b/tests/test_savanna.py index 042b8a6..34f1e5c 100644 --- a/tests/test_savanna.py +++ b/tests/test_savanna.py @@ -1,12 +1,25 @@ import subprocess +import urllib.error +import urllib.request import conftest +import pytest from nix_update.options import Options from nix_update.update import update def test_update(helpers: conftest.Helpers) -> None: + try: + response = urllib.request.urlopen( + "https://download.savannah.nongnu.org/releases/fileschanged/?C=M&O=D", + timeout=5, + ) + response.read() + except Exception: + # savannah's api seems to have issues lately + pytest.xfail("Savana is taking too long to respond") + with helpers.testpkgs() as path: opts = Options(attribute="savanna", import_path=str(path)) update(opts)