Skip to content

Commit

Permalink
fix unit test typo
Browse files Browse the repository at this point in the history
Signed-off-by: Will Murphy <[email protected]>
  • Loading branch information
willmurphyscode committed Oct 30, 2023
1 parent 5030b5f commit c115823
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/providers/github/test_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c115823

Please sign in to comment.