diff options
Diffstat (limited to 'packages/meshbay-node/tests/test_audio_transcode.py')
| -rw-r--r-- | packages/meshbay-node/tests/test_audio_transcode.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/meshbay-node/tests/test_audio_transcode.py b/packages/meshbay-node/tests/test_audio_transcode.py index 941ada2..a494be7 100644 --- a/packages/meshbay-node/tests/test_audio_transcode.py +++ b/packages/meshbay-node/tests/test_audio_transcode.py @@ -19,8 +19,8 @@ from meshbay_common.protocol import MNP, IndexEntry from meshbay_common.webcrypto import chunk_key_aes, decrypt_chunk_aes from meshbay_node.indexer.group_index import GroupIndex from meshbay_node.media_cache import MediaCache -from meshbay_node.transport import webrtc_server as wrs from meshbay_node.transport.webrtc.apps import music +from meshbay_node.transport.webrtc.limits import CHUNK_SIZE from meshbay_node.transport.webrtc_server import WebRTCPeerSession from conftest import needs_subprocess, one_root @@ -180,11 +180,11 @@ async def test_multi_chunk_cached_blob_reassembles_correctly(tmp_path, media_cac session.sent = [] session._send = session.sent.append - blob = os.urandom(int(wrs.CHUNK_SIZE * 2.3)) + blob = os.urandom(int(CHUNK_SIZE * 2.3)) blob_hash = blake3.blake3(blob).hexdigest() await media_cache.put_thumb(blob_hash, "synthetic:test", blob) - total_chunks = -(-len(blob) // wrs.CHUNK_SIZE) + total_chunks = -(-len(blob) // CHUNK_SIZE) for i in range(total_chunks): await session._do_file_request({"file_id": blob_hash, "chunk_index": i}) # One past the end must be a clean miss, not a partial/garbage chunk. |