diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 6ec1e87..8ea98bf 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -53,6 +53,7 @@ jobs: - run: uv run pytest tests/test_vad.py -s e2e_test_macos: + if: false # if: >- # ${{ # contains(github.event.head_commit.message, '[e2e]') || @@ -88,6 +89,7 @@ jobs: - run: uv run pytest tests/test_vad.py -s e2e_test_windows: + if: false # if: >- # ${{ # contains(github.event.head_commit.message, '[e2e]') || diff --git a/tests/test_signaling_message.py b/tests/test_signaling_message.py index 59621b2..66bd9d7 100644 --- a/tests/test_signaling_message.py +++ b/tests/test_signaling_message.py @@ -1,4 +1,3 @@ -import random import sys import time import uuid @@ -13,17 +12,14 @@ def test_random_signaling_message(setup): channel_id = f"{channel_id_prefix}_{__name__}_{sys._getframe().f_code.co_name}_{uuid.uuid4()}" - selected_audio = random.choice([True, False]) - selected_video = random.choice([True, False]) - sendonly = Sendonly( signaling_urls, channel_id, - audio=selected_audio, - video=selected_video, + audio=True, + video=True, metadata=metadata, ) - sendonly.connect(fake_audio=selected_audio, fake_video=selected_video) + sendonly.connect(fake_audio=True, fake_video=True) time.sleep(5) @@ -34,7 +30,7 @@ def test_random_signaling_message(setup): assert sendonly.answer_message is not None assert sendonly.connect_message["role"] == "sendonly" - assert sendonly.connect_message["channel_id"] is channel_id - assert sendonly.connect_message["audio"] is selected_audio - assert sendonly.connect_message["video"] is selected_video + assert sendonly.connect_message["channel_id"] == channel_id + assert sendonly.connect_message["audio"] is True + assert sendonly.connect_message["video"] is True assert sendonly.connect_message["metadata"] == metadata