Skip to content

Commit

Permalink
Timing problem in tests doesn't seem to be related to parallel runs
Browse files Browse the repository at this point in the history
  • Loading branch information
robinharms committed Mar 13, 2024
1 parent f8c0e64 commit 6576128
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 1
max-parallel: 5
matrix:
python-version: ['3.10', '3.11', '3.12']
os: [ ubuntu-latest, macos-latest ]
Expand Down
2 changes: 2 additions & 0 deletions envelope/channels/tests/test_messages.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import json
from asyncio import sleep
from unittest.mock import patch

from asgiref.sync import sync_to_async
Expand Down Expand Up @@ -342,6 +343,7 @@ async def test_full_lifecycle(self):
):
msg = self._cut()
await communicator.send_internal(msg)
await sleep(0.1)
await sync_to_async(work_with_conn)(connection=fake_redis_conn)
response = await communicator.receive_msg()
self.assertIsInstance(response, Left)
Expand Down

0 comments on commit 6576128

Please sign in to comment.