mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
edit lazydocker's tunnel filename to make it more coherent with the rest of the structure
This commit is contained in:
parent
087919fc83
commit
6acacc7a3e
2 changed files with 2 additions and 2 deletions
|
|
@ -87,7 +87,7 @@ func (t *tunneledDockerHost) Close() error {
|
|||
}
|
||||
|
||||
func (self *SSHHandler) createDockerHostTunnel(ctx context.Context, remoteHost string) (*tunneledDockerHost, error) {
|
||||
socketDir, err := self.tempDir("/tmp", "lazydocker-sshtunnel-")
|
||||
socketDir, err := self.tempDir("/tmp", "lazydocker-ssh-tunnel-")
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("create ssh tunnel tmp file: %w", err)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ func TestSSHHandlerHandleSSHDockerHost(t *testing.T) {
|
|||
|
||||
tempDir := func(dir string, pattern string) (string, error) {
|
||||
assert.Equal(t, "/tmp", dir)
|
||||
assert.Equal(t, "lazydocker-sshtunnel-", pattern)
|
||||
assert.Equal(t, "lazydocker-ssh-tunnel-", pattern)
|
||||
|
||||
return "/tmp/lazydocker-ssh-tunnel-12345", nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue