Fix failing tests

This commit is contained in:
Alexandre de Souza 2025-09-24 15:18:47 -03:00
parent 435a668578
commit 4eb9406d10
No known key found for this signature in database
GPG key ID: E39228FFBA346545
2 changed files with 4 additions and 0 deletions

View file

@ -150,6 +150,8 @@ defmodule Livebook.FileSystem.Git.Client do
end
defp with_ssh_key_file(file_system, fun) when is_function(fun, 1) do
File.mkdir_p!(Livebook.Config.tmp_path())
key_path = FileSystem.Git.key_path(file_system)
pem_entry = :public_key.pem_decode(file_system.key)
ssh_key = :public_key.pem_encode(pem_entry)

View file

@ -18,6 +18,8 @@ defmodule LivebookWeb.Integration.Hub.EditLiveTest do
if tags[:git] do
Livebook.FileSystem.Mounter.subscribe(team.id)
end
:ok
end
test "updates the hub", %{conn: conn, team: team} do