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:
parent
417b173c78
commit
7360b0f73c
2 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue