Skip to content

Commit cf3635d

Browse files
authored
make test_webhook_invalid_posts flaky (python-telegram-bot#1758)
1 parent 84cfc6f commit cf3635d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_updater.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import os
2121
import signal
2222
import sys
23+
from flaky import flaky
2324
from functools import partial
2425
from queue import Queue
2526
from random import randrange
@@ -281,6 +282,7 @@ def attempt(*args, **kwargs):
281282
updater._bootstrap(retries, False, 'path', None, bootstrap_interval=0)
282283
assert self.attempts == attempts
283284

285+
@flaky(3, 1)
284286
def test_webhook_invalid_posts(self, updater):
285287
ip = '127.0.0.1'
286288
port = randrange(1024, 49152) # select random port for travis

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