From 5538e2e8c018ae5a62b3fb16f3b03a4e2d08c506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Wed, 2 Feb 2022 14:04:45 +0100 Subject: [PATCH] Fix race condition in notebook import test --- test/livebook_web/live/home_live_test.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/livebook_web/live/home_live_test.exs b/test/livebook_web/live/home_live_test.exs index d68fd5c8a..872d752f4 100644 --- a/test/livebook_web/live/home_live_test.exs +++ b/test/livebook_web/live/home_live_test.exs @@ -230,7 +230,7 @@ defmodule LivebookWeb.HomeLiveTest do |> element("form", "Import") |> render_submit(%{data: %{content: notebook_content}}) - assert_receive {:session_created, %{id: id}} + assert_receive {:session_created, %{id: id, notebook_name: "My notebook"}} {:ok, view, _} = live(conn, "/sessions/#{id}") assert render(view) =~ "My notebook"