Skip to content

Commit

Permalink
Fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aleDsz committed Jul 30, 2024
1 parent 02e89c1 commit 8146bfd
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/support/integration/teams_server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -280,18 +280,12 @@ defmodule Livebook.TeamsServer do
end

defp hostname do
[nodename, hostname] =
[_nodename, hostname] =
node()
|> Atom.to_charlist()
|> :string.split(~c"@")

with {:ok, nodenames} <- :erl_epmd.names(hostname),
true <- List.keymember?(nodenames, nodename, 0) do
hostname
else
_ ->
raise "Error"
end
hostname
end

defp info(message), do: log([:blue, message <> "\n"])
Expand Down

0 comments on commit 8146bfd

Please sign in to comment.