Fix tests on windows

This commit is contained in:
Jonatan Kłosko 2023-03-15 18:18:33 +01:00
parent 9d1767dd50
commit fb9c8df7ea
2 changed files with 5 additions and 0 deletions

View file

@ -2,6 +2,7 @@ defmodule LivebookWeb.HomeLiveTest do
use LivebookWeb.ConnCase, async: true
import Phoenix.LiveViewTest
import Livebook.SessionHelpers
alias Livebook.{Sessions, Session}
@ -145,6 +146,8 @@ defmodule LivebookWeb.HomeLiveTest do
Session.set_file(session.pid, file)
Session.set_notebook_name(session.pid, "Special notebook")
wait_for_session_update(session.pid)
{:ok, view, _} = live(conn, ~p"/")
view

View file

@ -230,6 +230,8 @@ defmodule LivebookWeb.Hub.EditLiveTest do
assert_hub(view, %{hub | hub_emoji: attrs["hub_emoji"]})
refute Hubs.fetch_hub!(hub.id) == hub
Hubs.delete_hub(hub.id)
end
end