From c115823613ab672c67e8a9defab1115cd0b36f4e Mon Sep 17 00:00:00 2001 From: Will Murphy Date: Mon, 30 Oct 2023 14:03:59 -0400 Subject: [PATCH] fix unit test typo Signed-off-by: Will Murphy --- tests/unit/providers/github/test_github.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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