Skip to content

Commit

Permalink
[tests] Mark tests from test_delayed_queue.py as flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Feb 7, 2020
1 parent f61c0f3 commit 977866c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_delayed_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
# limitations under the License.

from time import time

import pytest
from watchdog.utils.delayed_queue import DelayedQueue


@pytest.mark.flaky(max_runs=5, min_passes=1)
def test_delayed_get():
q = DelayedQueue(2)
q.put("", True)
Expand All @@ -28,6 +31,7 @@ def test_delayed_get():
assert 2.10 > elapsed > 1.99


@pytest.mark.flaky(max_runs=5, min_passes=1)
def test_nondelayed_get():
q = DelayedQueue(2)
q.put("", False)
Expand Down

0 comments on commit 977866c

Please sign in to comment.