fix test_pin_and_unpin_message (#1749)

Make it flaky and timeout
This commit is contained in:
Eldinnie 2020-02-02 23:39:08 +01:00 committed by GitHub
parent 818475bd93
commit d8dcdeea75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -663,6 +663,8 @@ class TestBot(object):
assert bot.set_chat_description(channel_id, 'Time: ' + str(time.time()))
# TODO: Add bot to group to test there too
@flaky(3, 1)
@pytest.mark.timeout(10)
def test_pin_and_unpin_message(self, bot, super_group_id):
message = bot.send_message(super_group_id, text="test_pin_message")
assert bot.pin_chat_message(chat_id=super_group_id, message_id=message.message_id,