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 {
115115
116116 cfg := &shared.ConfigSite{
117117 Domain: "pipe.test",
118- Port: "2222",
119- PortOverride: "2222",
118+ Port: "2225",
119+ PortOverride: "2225",
120120 Protocol: "ssh",
121121 Logger: logger,
122122 Space: "pipe",
......@@ -143,7 +143,7 @@ func NewTestSSHServer(t *testing.T) *TestSSHServer {
143143 logger,
144144 "pipe-ssh-test",
145145 "localhost",
146- "2222",
146+ cfg.Port,
147147 "9222",
148148 "../../ssh_data/term_info_ed25519",
149149 func(conn ssh.ConnMetadata, key ssh.PublicKey) (*ssh.Permissions, error) {
......@@ -231,7 +231,7 @@ func (u UserSSH) NewClient() (*ssh.Client, error) {
231231 HostKeyCallback: ssh.InsecureIgnoreHostKey(),
232232 }
233233
234- return ssh.Dial("tcp", "localhost:2222", config)
234+ return ssh.Dial("tcp", "localhost:2225", config)
235235 }
236236
237237 func (u UserSSH) RunCommand(client *ssh.Client, cmd string) (string, error) {