mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-12-18 06:02:45 +08:00
Fix tests on windows
This commit is contained in:
parent
9d1767dd50
commit
fb9c8df7ea
2 changed files with 5 additions and 0 deletions
|
|
@ -2,6 +2,7 @@ defmodule LivebookWeb.HomeLiveTest do
|
||||||
use LivebookWeb.ConnCase, async: true
|
use LivebookWeb.ConnCase, async: true
|
||||||
|
|
||||||
import Phoenix.LiveViewTest
|
import Phoenix.LiveViewTest
|
||||||
|
import Livebook.SessionHelpers
|
||||||
|
|
||||||
alias Livebook.{Sessions, Session}
|
alias Livebook.{Sessions, Session}
|
||||||
|
|
||||||
|
|
@ -145,6 +146,8 @@ defmodule LivebookWeb.HomeLiveTest do
|
||||||
Session.set_file(session.pid, file)
|
Session.set_file(session.pid, file)
|
||||||
Session.set_notebook_name(session.pid, "Special notebook")
|
Session.set_notebook_name(session.pid, "Special notebook")
|
||||||
|
|
||||||
|
wait_for_session_update(session.pid)
|
||||||
|
|
||||||
{:ok, view, _} = live(conn, ~p"/")
|
{:ok, view, _} = live(conn, ~p"/")
|
||||||
|
|
||||||
view
|
view
|
||||||
|
|
|
||||||
|
|
@ -230,6 +230,8 @@ defmodule LivebookWeb.Hub.EditLiveTest do
|
||||||
|
|
||||||
assert_hub(view, %{hub | hub_emoji: attrs["hub_emoji"]})
|
assert_hub(view, %{hub | hub_emoji: attrs["hub_emoji"]})
|
||||||
refute Hubs.fetch_hub!(hub.id) == hub
|
refute Hubs.fetch_hub!(hub.id) == hub
|
||||||
|
|
||||||
|
Hubs.delete_hub(hub.id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue