Skip to content

Commit d8dcdee

Browse files
authored
fix test_pin_and_unpin_message (python-telegram-bot#1749)
Make it flaky and timeout
1 parent 818475b commit d8dcdee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_bot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,8 @@ def test_set_chat_description(self, bot, channel_id):
663663
assert bot.set_chat_description(channel_id, 'Time: ' + str(time.time()))
664664

665665
# TODO: Add bot to group to test there too
666+
@flaky(3, 1)
667+
@pytest.mark.timeout(10)
666668
def test_pin_and_unpin_message(self, bot, super_group_id):
667669
message = bot.send_message(super_group_id, text="test_pin_message")
668670
assert bot.pin_chat_message(chat_id=super_group_id, message_id=message.message_id,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy