ML-169.8: keep latest record query synchronous

get_latest_record is a single fast ORDER BY LIMIT 1 query --
no reason to async-load it. Removes the <.async_result> wrapper
and the now-unnecessary render_async() from its test.
This commit is contained in:
Claudio Ortolina
2026-05-25 09:42:14 +03:00
parent a3701de90e
commit 2d8989a8d0
2 changed files with 6 additions and 27 deletions
@@ -59,7 +59,6 @@ defmodule MusicLibraryWeb.StatsLive.IndexTest do
session =
conn
|> visit("/")
|> render_async()
|> assert_has("span", escape(latest_record.title))
for artist <- latest_record.artists do