mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Merge pull request #105250 from ishangupta-ds/remaining-err
updated errors pkg to native go pkg for test/e2e/network/netopol test_helper
This commit is contained in:
commit
b15f788d29
@ -22,7 +22,6 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/onsi/ginkgo"
|
"github.com/onsi/ginkgo"
|
||||||
"github.com/pkg/errors"
|
|
||||||
networkingv1 "k8s.io/api/networking/v1"
|
networkingv1 "k8s.io/api/networking/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/apimachinery/pkg/util/wait"
|
"k8s.io/apimachinery/pkg/util/wait"
|
||||||
@ -105,7 +104,7 @@ func waitForHTTPServers(k *kubeManager, model *Model) error {
|
|||||||
}
|
}
|
||||||
time.Sleep(waitInterval)
|
time.Sleep(waitInterval)
|
||||||
}
|
}
|
||||||
return errors.Errorf("after %d tries, %d HTTP servers are not ready", maxTries, len(notReady))
|
return fmt.Errorf("after %d tries, %d HTTP servers are not ready", maxTries, len(notReady))
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidateOrFail validates connectivity
|
// ValidateOrFail validates connectivity
|
||||||
|
Loading…
Reference in New Issue
Block a user