Commit 31fe51c
Antonio Mika
·
2026-10-11 19:05:28 -0400 EDT
parent e6c2d68
test(pipe): drop the fixed prometheus port from the test server
1 files changed,
+1,
-4
+1,
-4
| ... | ... | @@ -22,7 +22,6 @@ import ( | |
| 22 | 22 | "github.com/picosh/pico/pkg/pssh" | |
| 23 | 23 | psub "github.com/picosh/pico/pkg/pubsub" | |
| 24 | 24 | "github.com/picosh/pico/pkg/shared" | |
| 25 | - | "github.com/prometheus/client_golang/prometheus" | |
| 26 | 25 | "golang.org/x/crypto/ssh" | |
| 27 | 26 | ) | |
| 28 | 27 |
| ... | ... | @@ -271,15 +270,13 @@ func NewTestSSHServer(t *testing.T) *TestSSHServer { | |
| 271 | 270 | ||
| 272 | 271 | sshAuth := shared.NewSshAuthHandler(dbpool, logger, "pipe") | |
| 273 | 272 | ||
| 274 | - | prometheus.DefaultRegisterer = prometheus.NewRegistry() | |
| 275 | - | ||
| 276 | 273 | server, err := pssh.NewSSHServerWithConfig( | |
| 277 | 274 | ctx, | |
| 278 | 275 | logger, | |
| 279 | 276 | "pipe-ssh-test", | |
| 280 | 277 | "localhost", | |
| 281 | 278 | cfg.Port, | |
| 282 | - | "9223", | |
| 279 | + | "", | |
| 283 | 280 | "../../ssh_data/term_info_ed25519", | |
| 284 | 281 | func(conn ssh.ConnMetadata, key ssh.PublicKey) (*ssh.Permissions, error) { | |
| 285 | 282 | perms, _ := sshAuth.PubkeyAuthHandler(conn, key) |