make test_webhook_invalid_posts flaky (#1758)

This commit is contained in:
Bibo-Joshi 2020-02-07 17:32:38 +01:00 committed by GitHub
parent 84cfc6f7fa
commit cf3635d408
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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