Add flaky decorator to random_org tests that occassionally fail

This commit is contained in:
rallytime 2018-10-16 11:14:12 -04:00
parent abe894ddb1
commit 305dc0118d
No known key found for this signature in database
GPG Key ID: E8F1A4B90D0DEA19

View File

@ -7,6 +7,7 @@
from __future__ import absolute_import, print_function, unicode_literals
# Import Salt Testing Libs
from tests.support.helpers import flaky
from tests.support.mixins import LoaderModuleMockMixin
from tests.support.unit import TestCase
@ -182,6 +183,7 @@ class RandomOrgTestCase(TestCase, LoaderModuleMockMixin):
# 'generateDecimalFractions' function tests: 1
@flaky
def test_generatedecimalfractions(self):
'''
Test if it generates true random decimal fractions.
@ -214,6 +216,7 @@ class RandomOrgTestCase(TestCase, LoaderModuleMockMixin):
# 'generateGaussians' function tests: 1
@flaky
def test_generategaussians(self):
'''
Test if it generates true random numbers from a