diff --git a/tests/unit/providers/github/test_github.py b/tests/unit/providers/github/test_github.py index 488b6a03..d946e9f0 100644 --- a/tests/unit/providers/github/test_github.py +++ b/tests/unit/providers/github/test_github.py @@ -453,7 +453,7 @@ def test_provider_schema(helpers, fake_get_query, advisories): @patch("requests.post") def test_provider_respects_github_rate_limit(mock_post, mock_sleep): response = Mock() - in_five_seconds = int(time.time()) + in_five_seconds = int(time.time()) + 5 response.headers = {"x-ratelimit-remaining": 9, "x-ratelimit-reset": in_five_seconds} response.status_code = 200 mock_post.return_value = response @@ -474,7 +474,7 @@ def mock_raise_for_status(): @patch("requests.post") def test_provider_respects_github_rate_limit(mock_post, mock_sleep): response = Mock() - in_five_seconds = int(time.time()) + in_five_seconds = int(time.time()) + 5 response.headers = {"x-ratelimit-remaining": 11, "x-ratelimit-reset": in_five_seconds} response.status_code = 200 mock_post.return_value = response