diff --git a/swh/lister/github/tests/test_lister.py b/swh/lister/github/tests/test_lister.py
index a09d6064cc64ea2cc6de6f080835523dc9ddd8ad..11de74ac57702a00242113416581d892f8d13ef6 100644
--- a/swh/lister/github/tests/test_lister.py
+++ b/swh/lister/github/tests/test_lister.py
@@ -217,6 +217,7 @@ def test_ratelimit_reset_sleep(
     requests_ratelimited,
     monkeypatch_sleep_calls,
     num_before_ratelimit,
+    num_ratelimit,
     ratelimit_reset,
     github_credentials,
     lister_credentials,