From f1ce3c3cc604ec07c7590c1b1d42dc4bc99b86c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Tue, 24 Oct 2023 19:15:30 +0200 Subject: [PATCH] Fix rendering timeout in learn page test (#2297) --- test/livebook_web/live/learn_live_test.exs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/livebook_web/live/learn_live_test.exs b/test/livebook_web/live/learn_live_test.exs index a56afa30e..39a073165 100644 --- a/test/livebook_web/live/learn_live_test.exs +++ b/test/livebook_web/live/learn_live_test.exs @@ -13,8 +13,13 @@ defmodule LivebookWeb.LearnLiveTest do assert to =~ "/sessions/" - {:ok, view, _} = live(conn, to) - assert render(view) =~ "Welcome to Livebook" + # Note that this LV page is huge and the simulated rendering in + # LV tests is not heavily optimized. This LV receives events from + # concurrent tests (such as hub creation) and rendering is a big + # bottleneck, to the point where calling render(view) times out. + # That's why we only assert on the dead render HTML. + {:ok, _view, html} = live(conn, to) + assert html =~ "Welcome to Livebook" close_session_by_path(to) end