Commit 167a764
Eric Bower
·
2025-12-25 23:45:05 -0500 EST
parent 47413a9
chore(pipe): use different port for tests
1 files changed,
+4,
-4
+4,
-4
| ... | ... | @@ -115,8 +115,8 @@ func NewTestSSHServer(t *testing.T) *TestSSHServer { | |
| 115 | 115 | ||
| 116 | 116 | cfg := &shared.ConfigSite{ | |
| 117 | 117 | Domain: "pipe.test", | |
| 118 | - | Port: "2222", | |
| 119 | - | PortOverride: "2222", | |
| 118 | + | Port: "2225", | |
| 119 | + | PortOverride: "2225", | |
| 120 | 120 | Protocol: "ssh", | |
| 121 | 121 | Logger: logger, | |
| 122 | 122 | Space: "pipe", |
| ... | ... | @@ -143,7 +143,7 @@ func NewTestSSHServer(t *testing.T) *TestSSHServer { | |
| 143 | 143 | logger, | |
| 144 | 144 | "pipe-ssh-test", | |
| 145 | 145 | "localhost", | |
| 146 | - | "2222", | |
| 146 | + | cfg.Port, | |
| 147 | 147 | "9222", | |
| 148 | 148 | "../../ssh_data/term_info_ed25519", | |
| 149 | 149 | func(conn ssh.ConnMetadata, key ssh.PublicKey) (*ssh.Permissions, error) { |
| ... | ... | @@ -231,7 +231,7 @@ func (u UserSSH) NewClient() (*ssh.Client, error) { | |
| 231 | 231 | HostKeyCallback: ssh.InsecureIgnoreHostKey(), | |
| 232 | 232 | } | |
| 233 | 233 | ||
| 234 | - | return ssh.Dial("tcp", "localhost:2222", config) | |
| 234 | + | return ssh.Dial("tcp", "localhost:2225", config) | |
| 235 | 235 | } | |
| 236 | 236 | ||
| 237 | 237 | func (u UserSSH) RunCommand(client *ssh.Client, cmd string) (string, error) { |