Update dependencies

This commit is contained in:
Ludovic Fernandez 2020-02-24 16:06:05 +01:00 committed by GitHub
parent bb4de11c51
commit 101aefbfe8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 194 additions and 106 deletions

View file

@ -34,10 +34,10 @@ func (s *K8sSuite) SetUpSuite(c *check.C) {
abs, err := filepath.Abs("./fixtures/k8s/config.skip/kubeconfig.yaml")
c.Assert(err, checker.IsNil)
err = try.Do(60*time.Second, try.DoCondition(func() error {
err = try.Do(60*time.Second, func() error {
_, err := os.Stat(abs)
return err
}))
})
c.Assert(err, checker.IsNil)
err = os.Setenv("KUBECONFIG", abs)
@ -99,7 +99,7 @@ func testConfiguration(c *check.C, path, apiPort string) {
}
var buf bytes.Buffer
err = try.GetRequest("http://127.0.0.1:"+apiPort+"/api/rawdata", 40*time.Second, try.StatusCodeIs(http.StatusOK), matchesConfig(expectedJSON, &buf))
err = try.GetRequest("http://127.0.0.1:"+apiPort+"/api/rawdata", 1*time.Minute, try.StatusCodeIs(http.StatusOK), matchesConfig(expectedJSON, &buf))
if !*updateExpected {
if err != nil {