summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/tests/test_root_availability.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-node/tests/test_root_availability.py')
-rw-r--r--packages/meshbay-node/tests/test_root_availability.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/meshbay-node/tests/test_root_availability.py b/packages/meshbay-node/tests/test_root_availability.py
index 028c308..0201c1f 100644
--- a/packages/meshbay-node/tests/test_root_availability.py
+++ b/packages/meshbay-node/tests/test_root_availability.py
@@ -14,6 +14,7 @@ straightforward implementation does.
"""
import asyncio
+import os
from pathlib import Path
import pytest
@@ -90,7 +91,10 @@ async def test_one_root_going_away_leaves_the_others_alone(tmp_path):
films.mkdir()
music.mkdir()
(films / "a.mkv").write_bytes(b"a")
- (music / "b.mp3").write_bytes(b"b")
+ # Above the tiny-audio-file cutoff (indexer.py's MIN_AUDIO_SIZE_BYTES) —
+ # this test is about root availability, not that gate, so the content
+ # just needs to actually get indexed as an entry.
+ (music / "b.mp3").write_bytes(os.urandom(60 * 1024))
idx = await _indexer(_roots(films, music))
assert _names(idx) == {"a.mkv", "b.mp3"}