test cases: wait 100 milliseconds before recheck if the test server is up

this avoid a lot of useless warnings in travis logs
This commit is contained in:
Nicola Murino 2019-07-26 11:41:58 +02:00
parent 417b173c78
commit 7360b0f73c
2 changed files with 2 additions and 0 deletions

View file

@ -101,6 +101,7 @@ func waitTCPListening(address string) {
conn, err := net.Dial("tcp", address) conn, err := net.Dial("tcp", address)
if err != nil { if err != nil {
fmt.Printf("tcp server %v not listening: %v\n", address, err) fmt.Printf("tcp server %v not listening: %v\n", address, err)
time.Sleep(100 * time.Millisecond)
continue continue
} }
fmt.Printf("tcp server %v now listening\n", address) fmt.Printf("tcp server %v now listening\n", address)

View file

@ -140,6 +140,7 @@ func waitTCPListening(address string) {
conn, err := net.Dial("tcp", address) conn, err := net.Dial("tcp", address)
if err != nil { if err != nil {
fmt.Printf("tcp server %v not listening: %v\n", address, err) fmt.Printf("tcp server %v not listening: %v\n", address, err)
time.Sleep(100 * time.Millisecond)
continue continue
} }
fmt.Printf("tcp server %v now listening\n", address) fmt.Printf("tcp server %v now listening\n", address)