mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-09 11:44:22 +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 os
|
||||||
import signal
|
import signal
|
||||||
import sys
|
import sys
|
||||||
|
from flaky import flaky
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from queue import Queue
|
from queue import Queue
|
||||||
from random import randrange
|
from random import randrange
|
||||||
|
@ -281,6 +282,7 @@ class TestUpdater(object):
|
||||||
updater._bootstrap(retries, False, 'path', None, bootstrap_interval=0)
|
updater._bootstrap(retries, False, 'path', None, bootstrap_interval=0)
|
||||||
assert self.attempts == attempts
|
assert self.attempts == attempts
|
||||||
|
|
||||||
|
@flaky(3, 1)
|
||||||
def test_webhook_invalid_posts(self, updater):
|
def test_webhook_invalid_posts(self, updater):
|
||||||
ip = '127.0.0.1'
|
ip = '127.0.0.1'
|
||||||
port = randrange(1024, 49152) # select random port for travis
|
port = randrange(1024, 49152) # select random port for travis
|
||||||
|
|
Loading…
Reference in a new issue