1
0
Fork 0
mirror of https://github.com/adnanh/webhook.git synced 2026-07-21 01:15:37 +00:00

fix: test

This commit is contained in:
jason.liao 2026-06-02 15:29:34 +08:00
parent 2098d78cdb
commit 9263a7200b

View file

@ -355,7 +355,7 @@ func startWebhookServer(t *testing.T, webhookBin, configPath string, extraArgs .
t.Fatalf("failed to start webhook: %s", err)
}
waitForServerReady(t, ip, port)
waitForServerReady(t, net.JoinHostPort(ip, port), &http.Client{})
return cmd, logs, "http://" + net.JoinHostPort(ip, port)
}