orchestrator/clickhouse: also guess the port when guessing HTTP URL

This commit is contained in:
Vincent Bernat
2025-07-30 08:11:28 +02:00
parent 74343c7c3e
commit a70029a4cd
3 changed files with 30 additions and 21 deletions

View File

@@ -17,7 +17,7 @@ import (
func NewMock(t *testing.T, r *reporter.Reporter) *Component {
t.Helper()
config := DefaultConfiguration()
config.Listen = "127.0.0.1:0"
config.Listen = "0.0.0.0:0"
c, err := New(r, config, Dependencies{Daemon: daemon.NewMock(t)})
if err != nil {
t.Fatalf("New() error:\n%+v", err)