repos / pico

pico services mono repo
git clone https://github.com/picosh/pico.git

commit
167a764
parent
47413a9
author
Eric Bower
date
2025-12-25 23:45:05 -0500 EST
chore(pipe): use different port for tests
1 files changed,  +4, -4
M pkg/apps/pipe/ssh_test.go
+4, -4
 1@@ -115,8 +115,8 @@ func NewTestSSHServer(t *testing.T) *TestSSHServer {
 2 
 3 	cfg := &shared.ConfigSite{
 4 		Domain:       "pipe.test",
 5-		Port:         "2222",
 6-		PortOverride: "2222",
 7+		Port:         "2225",
 8+		PortOverride: "2225",
 9 		Protocol:     "ssh",
10 		Logger:       logger,
11 		Space:        "pipe",
12@@ -143,7 +143,7 @@ func NewTestSSHServer(t *testing.T) *TestSSHServer {
13 		logger,
14 		"pipe-ssh-test",
15 		"localhost",
16-		"2222",
17+		cfg.Port,
18 		"9222",
19 		"../../ssh_data/term_info_ed25519",
20 		func(conn ssh.ConnMetadata, key ssh.PublicKey) (*ssh.Permissions, error) {
21@@ -231,7 +231,7 @@ func (u UserSSH) NewClient() (*ssh.Client, error) {
22 		HostKeyCallback: ssh.InsecureIgnoreHostKey(),
23 	}
24 
25-	return ssh.Dial("tcp", "localhost:2222", config)
26+	return ssh.Dial("tcp", "localhost:2225", config)
27 }
28 
29 func (u UserSSH) RunCommand(client *ssh.Client, cmd string) (string, error) {