mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 18:02:01 +00:00
Wait for logs pod to complete before counting lines
This commit is contained in:
parent
3154010eec
commit
3d3da44e96
@ -183,8 +183,9 @@ var _ = SIGDescribe("Kubectl logs", func() {
|
||||
|
||||
ginkgo.It("should log default container if not specified", func(ctx context.Context) {
|
||||
ginkgo.By("Waiting for log generator to start.")
|
||||
if !e2epod.CheckPodsRunningReadyOrSucceeded(ctx, c, ns, []string{podName}, framework.PodStartTimeout) {
|
||||
framework.Failf("Pod %s was not ready", podName)
|
||||
// we need to wait for pod completion, to check the generated number of lines
|
||||
if err := e2epod.WaitForPodSuccessInNamespaceTimeout(ctx, c, podName, ns, framework.PodStartTimeout); err != nil {
|
||||
framework.Failf("Pod %s did not finish: %v", podName, err)
|
||||
}
|
||||
|
||||
ginkgo.By("specified container log lines")
|
||||
|
Loading…
Reference in New Issue
Block a user