1
0
mirror of synced 2025-12-25 02:09:19 -05:00

🐛 Source GitHub: Fix MultipleTokenAuthenticator sleep time (#34598)

This commit is contained in:
Artem Inzhyyants
2024-01-29 11:29:32 +01:00
committed by GitHub
parent 74ceae0327
commit 66cd528340
5 changed files with 7 additions and 4 deletions

View File

@@ -94,7 +94,7 @@ def test_multiple_token_authenticator_with_rate_limiter(caplog):
list(read_full_refresh(stream))
assert [(x.count_rest, x.count_graphql) for x in authenticator._tokens.values()] == [(0, 500), (0, 500), (0, 500)]
assert "Limits for all provided tokens are reached, please try again later" in caplog.messages
assert "Stream: `organizations`, slice: `{'organization': 'org1'}`. Limits for all provided tokens are reached, please try again later" in caplog.messages
@freeze_time("2021-01-01 12:00:00")