Delay api test connection based on Travis support rec
@@ -13,6 +13,7 @@ import (
"strconv"
"strings"
"testing"
+ "time"
)
func TestServersConfig(t *testing.T) {
@@ -82,6 +83,8 @@ func TestJsonApi(t *testing.T) {
return
}
+ time.Sleep(3 * time.Second)
+
url := fmt.Sprintf("http://127.0.0.1:%d/v1/example/echo", config.ConfigValues.JsonServerPort)
resp, err := http.Post(url, contentType, strings.NewReader(payload))
