forked from Ivasoft/traefik
Update dependencies
This commit is contained in:
committed by
GitHub
parent
bb4de11c51
commit
101aefbfe8
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user