Skip to content

Commit

Permalink
update test to reflect change to the queried ssh host
Browse files Browse the repository at this point in the history
  • Loading branch information
peauc committed Sep 7, 2024
1 parent e036f01 commit 9449434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/commands/ssh/ssh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++

Expand All @@ -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)
Expand Down

0 comments on commit 9449434

Please sign in to comment.