Update dependencies
This commit is contained in:
parent
bb4de11c51
commit
101aefbfe8
4 changed files with 194 additions and 106 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue