edit lazydocker's tunnel filename to make it more coherent with the rest of the structure

This commit is contained in:
Clément PÉAU 2025-05-03 21:01:17 +02:00
parent 087919fc83
commit 6acacc7a3e
2 changed files with 2 additions and 2 deletions

View file

@ -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)
}

View file

@ -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
}