Skip to content

Commit

Permalink
再現させる
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Jan 25, 2024
1 parent f4e8995 commit 1301c9b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/test_messaging.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
import os
import time

Expand All @@ -20,17 +21,18 @@ def send_message():
channel_id=os.environ.get("TEST_CHANNEL_ID_PREFIX") + "sora-python-sdk-test",
data_channel_signaling=True,
data_channels=[{"label": "#spam", "direction": "sendrecv"}],
metadata={"access_token": os.environ.get("TEST_SECRET_KEY")},
audio=False,
video=False,
)

connection.connect()

time.sleep(3)
time.sleep(1)

connection.send_data_channel("#spam", b"Hello, world!")

time.sleep(3)
time.sleep(1)

connection.disconnect()

Expand All @@ -43,6 +45,7 @@ def test_messaging_direction_recvonly():
channel_id=os.environ.get("TEST_CHANNEL_ID_PREFIX") + "sora-python-sdk-test",
data_channel_signaling=True,
data_channels=[{"label": "#spam", "direction": "sendrecv"}],
metadata={"access_token": os.environ.get("TEST_SECRET_KEY")},
audio=False,
video=False,
)
Expand All @@ -56,6 +59,4 @@ def test_messaging_direction_recvonly():

send_message()

time.sleep(3)

connection.disconnect()

0 comments on commit 1301c9b

Please sign in to comment.