fix(zli): Improve zli CVE diff output (#3994)

* fix(cli): improve zli CVE diff output

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* test(api): avoid TestRoutes port collision

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* test(cli): cover CVE diff formatting helpers

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* test(search): remove redundant test case copy

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

---------

Signed-off-by: Akash Kumar <meakash7902@gmail.com>
This commit is contained in:
Akash Kumar
2026-04-27 00:55:10 +05:30
committed by GitHub
parent 934b22d124
commit 8905b48bb7
8 changed files with 191 additions and 11 deletions
+12
View File
@@ -106,6 +106,18 @@ func (cm *ControllerManager) WaitServerToBeReady(port string) {
func (cm *ControllerManager) StartAndWait(port string) {
cm.StartServer()
if port == "0" || port == "" {
for {
if chosenPort := cm.controller.GetPort(); chosenPort > 0 {
port = strconv.Itoa(chosenPort)
break
}
time.Sleep(SleepTime)
}
}
url := GetBaseURL(port)
WaitTillServerReady(url)
}