mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2026-06-19 07:35:19 +00:00
Improve Internal Logic for Network Retries (#4880)
This commit is contained in:
@@ -1716,6 +1716,7 @@ class TestApplication:
|
||||
expected = {
|
||||
name: name for name in updater_signature.parameters if name != "error_callback"
|
||||
}
|
||||
expected["bootstrap_retries"] = 42
|
||||
thread = Thread(target=thread_target)
|
||||
thread.start()
|
||||
app.run_polling(close_loop=False, **expected)
|
||||
@@ -2022,6 +2023,7 @@ class TestApplication:
|
||||
assert self.received[name] == param.default
|
||||
|
||||
expected = {name: name for name in updater_signature.parameters if name != "self"}
|
||||
expected["bootstrap_retries"] = 42
|
||||
thread = Thread(target=thread_target)
|
||||
thread.start()
|
||||
app.run_webhook(close_loop=False, **expected)
|
||||
|
||||
Reference in New Issue
Block a user