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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user