Skip to content

Commit

Permalink
Mark more flakes.
Browse files Browse the repository at this point in the history
  • Loading branch information
DailyDreaming committed Jun 6, 2024
1 parent b5c2cf3 commit 862cc2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/test_memoize_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import pytest

from unittest import mock
from tenacity import retry, stop_after_attempt
from botocore.exceptions import ClientError
from braingeneers.utils.configure import skip_unittest_if_offline
from braingeneers.utils.memoize_s3 import memoize
Expand Down
3 changes: 3 additions & 0 deletions tests/test_messaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def setUp(self) -> None:
self.mb = messaging.MessageBroker()
self.mb.delete_queue("unittest")

@retry(stop=stop_after_attempt(3)) # TODO: Fix this flaky test
def test_get_put_defaults(self):
q = self.mb.get_queue("unittest")
q.put("some-value")
Expand All @@ -226,12 +227,14 @@ def test_get_put_nonblocking_without_maxsize(self):
result = q.get(block=False)
self.assertEqual(result, "some-value")

@retry(stop=stop_after_attempt(3)) # TODO: Fix this flaky test
def test_maxsize(self):
q = self.mb.get_queue("unittest", maxsize=1)
q.put("some-value")
result = q.get()
self.assertEqual(result, "some-value")

@retry(stop=stop_after_attempt(3)) # TODO: Fix this flaky test
def test_timeout_put(self):
q = self.mb.get_queue("unittest", maxsize=1)
q.put("some-value-1")
Expand Down

0 comments on commit 862cc2b

Please sign in to comment.