Skip to content

Commit

Permalink
Increase some unittest timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHolyRoger committed Jun 28, 2023
1 parent 2d0395e commit 1b0e9e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def _create_exception_and_unlock_test_with_event(self, exception):
self.resume_test_event.set()
raise exception

def async_run_with_timeout(self, coroutine: Awaitable, timeout: float = 1):
def async_run_with_timeout(self, coroutine: Awaitable, timeout: float = 3):
ret = self.ev_loop.run_until_complete(asyncio.wait_for(coroutine, timeout))
return ret

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def is_logged(self, log_level: str, message: str) -> bool:
record.levelname == log_level and record.getMessage() == message for
record in self.log_records)

def async_run_with_timeout(self, coroutine: Awaitable, timeout: int = 1):
def async_run_with_timeout(self, coroutine: Awaitable, timeout: int = 3):
ret = asyncio.get_event_loop().run_until_complete(asyncio.wait_for(coroutine, timeout))
return ret

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def setUp(self, get_connector_settings_mock, get_exchange_names_mock):
def tearDown(self):
super().tearDown()

def async_run_with_timeout(self, coroutine: Awaitable, timeout: int = 1):
def async_run_with_timeout(self, coroutine: Awaitable, timeout: int = 2):
ret = self.ev_loop.run_until_complete(asyncio.wait_for(coroutine, timeout))
return ret

Expand Down

0 comments on commit 1b0e9e7

Please sign in to comment.