Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
harkamaljot committed Jan 16, 2025
1 parent dde86ee commit 9f7452b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/compute_engine/test__metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,15 +365,15 @@ def test_get_too_many_requests_retryable_error_failure():
request = make_request("too many requests", status=http_client.TOO_MANY_REQUESTS)

with pytest.raises(exceptions.TransportError) as excinfo:
_metadata.get_universe_domain(request)
_metadata.get(request, PATH)

assert excinfo.match(
r"Compute Engine Metadata server unavailable due to too many requests"
)

request.assert_called_with(
method="GET",
url=_metadata._METADATA_ROOT + "universe/universe-domain",
url=_metadata._METADATA_ROOT + PATH,
headers=_metadata._METADATA_HEADERS,
)
assert request.call_count == 5
Expand Down

0 comments on commit 9f7452b

Please sign in to comment.