server: correctly save duration, when filewriter is finished

This commit is contained in:
2023-11-10 18:23:40 +01:00
committed by Mathieu Virbel
parent afa8010d29
commit e18a7c8d4e
6 changed files with 162 additions and 39 deletions

View File

@@ -191,6 +191,9 @@ async def test_transcript_rtc_and_websocket(
assert events[-1]["event"] == "STATUS"
assert events[-1]["data"]["value"] == "ended"
# check on the latest response that the audio duration is > 0
assert resp.json()["duration"] > 0
# check that audio/mp3 is available
resp = await ac.get(f"/transcripts/{tid}/audio/mp3")
assert resp.status_code == 200