Feature/sync speed - improve test
@@ -339,10 +339,8 @@ def test_output(mocked_run, mock_server, internal_sender, start_backend, stop_ba
internal_sender.publish_output("stdout", "\rFinal line baby\n")
stop_backend()
print("DUDE!", mock_server.ctx)
- assert (
- "Final line baby"
- in mock_server.ctx["file_stream"][0]["files"]["output.log"]["content"][0]
- )
+ stream = next(m for m in mock_server.ctx["file_stream"] if m.get("files"))
+ assert "Final line baby" in stream["files"]["output.log"]["content"][0]
def test_sync_spell_run(
