increase delay in api test
@@ -83,7 +83,8 @@ func TestJsonApi(t *testing.T) {
return
}
- time.Sleep(3 * time.Second)
+ // Without this running this on Travis CI may generate a connection refused error
+ time.Sleep(10 * 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))
