mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Add flaky decorator to random_org tests that occassionally fail
This commit is contained in:
parent
abe894ddb1
commit
305dc0118d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user