diff --git a/tests/test_pacman_mirrors.py b/tests/test_pacman_mirrors.py
index 0ed5bc8529ecec24b6ddaee3011b56e64c1b4533..e803f92f06929b1444ab245580384a6e77494a1e 100644
--- a/tests/test_pacman_mirrors.py
+++ b/tests/test_pacman_mirrors.py
@@ -40,7 +40,9 @@ class TestPacmanMirrors(unittest.TestCase):
             "no_update": False,
             "only_country": [],
             "repo_arch": conf.REPO_ARCH,
-            "status_file": conf.STATUS_FILE
+            "status_file": conf.STATUS_FILE,
+            "url_mirrors": conf.URL_MIRROR_JSON,
+            "url_status": conf.URL_STATUS_JSON
         }
         with unittest.mock.patch("sys.argv",
                                  ["pacman-mirrors",
@@ -51,7 +53,7 @@ class TestPacmanMirrors(unittest.TestCase):
             filefn.dir_must_exist(conf.MIRROR_DIR)
             app.command_line_parse()
             app.load_all_mirrors()
-            app.network = httpfn.update_mirrors()
+            app.network = httpfn.update_mirrors(app.config)
             # actual generation
             if app.fasttrack:
                 app.build_fasttrack_mirror_list(app.fasttrack)