mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
update test to reflect change to the queried ssh host
This commit is contained in:
parent
e036f01ebb
commit
94494348d0
1 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ func TestSSHHandlerHandleSSHDockerHost(t *testing.T) {
|
|||
|
||||
startCmdCount := 0
|
||||
startCmd := func(cmd *exec.Cmd) error {
|
||||
assert.EqualValues(t, []string{"ssh", "-L", "/tmp/lazydocker-ssh-tunnel-12345/dockerhost.sock:/var/run/docker.sock", "192.168.5.178", "-N"}, cmd.Args)
|
||||
assert.EqualValues(t, []string{"ssh", "-L", "/tmp/lazydocker-ssh-tunnel-12345/dockerhost.sock:/var/run/docker.sock", s.envVarValue, "-N"}, cmd.Args)
|
||||
|
||||
startCmdCount++
|
||||
|
||||
|
|
@ -91,7 +91,7 @@ func TestSSHHandlerHandleSSHDockerHost(t *testing.T) {
|
|||
setenv: setenv,
|
||||
}
|
||||
|
||||
_, err := handler.HandleSSHDockerHost()
|
||||
_, err := handler.HandleSSHDockerHost(s.envVarValue)
|
||||
assert.NoError(t, err)
|
||||
|
||||
assert.Equal(t, s.expectedDialContextCount, dialContextCount)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue