mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-01 12:41:43 +08:00
Fix race condition in notebook import test
This commit is contained in:
parent
9f5e0b6983
commit
5538e2e8c0
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue