Skip to content

Commit a05a4c5

Browse files
committed
fixup! Use LibSSH.jl to set up an SSH server for the SSHManager tests
1 parent 07c306f commit a05a4c5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/distributed_exec.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -830,10 +830,12 @@ if Sys.isunix() # aka have ssh
830830
print("\nssh addprocs with tunnel (SSH multiplexing)\n")
831831
new_pids = addprocs_with_testenv([("localhost", num_workers)]; tunnel=true, multiplex=true, sshflags=sshflags)
832832
@test length(new_pids) == num_workers
833-
controlpath = joinpath(homedir(), ".ssh", "julia-$(ENV["USER"])@localhost:2222")
834-
@test issocket(controlpath)
835-
test_n_remove_pids(new_pids)
836-
@test :ok == timedwait(()->!issocket(controlpath), 10.0; pollint=0.5)
833+
mktempdir() do path
834+
controlpath = joinpath(path, "julia-$(ENV["USER"])@localhost:2222")
835+
@test issocket(controlpath)
836+
test_n_remove_pids(new_pids)
837+
@test :ok == timedwait(()->!issocket(controlpath), 10.0; pollint=0.5)
838+
end
837839

838840
print("\nAll supported formats for hostname\n")
839841
h1 = "localhost"

0 commit comments

Comments
 (0)