mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 22:45:09 +01:00
make test_webhook_invalid_posts flaky (#1758)
This commit is contained in:
parent
84cfc6f7fa
commit
cf3635d408
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,7 @@ import logging
|
|||
import os
|
||||
import signal
|
||||
import sys
|
||||
from flaky import flaky
|
||||
from functools import partial
|
||||
from queue import Queue
|
||||
from random import randrange
|
||||
|
@ -281,6 +282,7 @@ class TestUpdater(object):
|
|||
updater._bootstrap(retries, False, 'path', None, bootstrap_interval=0)
|
||||
assert self.attempts == attempts
|
||||
|
||||
@flaky(3, 1)
|
||||
def test_webhook_invalid_posts(self, updater):
|
||||
ip = '127.0.0.1'
|
||||
port = randrange(1024, 49152) # select random port for travis
|
||||
|
|
Loading…
Reference in a new issue