Skip to content

Commit 3053eb5

Browse files
committed
e2e: improve timeout and podname in logging message
Signed-off-by: Niels de Vos <[email protected]>
1 parent 6c5d1ff commit 3053eb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/pod.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func getDaemonSetLabelSelector(f *framework.Framework, ns, daemonSetName string)
7171
func waitForDaemonSets(name, ns string, c kubernetes.Interface, t int) error {
7272
timeout := time.Duration(t) * time.Minute
7373
start := time.Now()
74-
framework.Logf("Waiting up to %v for all daemonsets in namespace '%s' to start", timeout, ns)
74+
framework.Logf("Waiting up to %s for all daemonsets in namespace '%s' to start", timeout, ns)
7575

7676
return wait.PollUntilContextTimeout(context.TODO(), poll, timeout, true, func(ctx context.Context) (bool, error) {
7777
ds, err := c.AppsV1().DaemonSets(ns).Get(ctx, name, metav1.GetOptions{})
@@ -374,7 +374,7 @@ func createAppErr(c kubernetes.Interface, app *v1.Pod, timeout int, errStrings [
374374
func waitForPodInRunningState(name, ns string, c kubernetes.Interface, t int, expectedErrors []string) error {
375375
timeout := time.Duration(t) * time.Minute
376376
start := time.Now()
377-
framework.Logf("Waiting up to %v to be in Running state", name)
377+
framework.Logf("Waiting up to %s for %v to be in Running state", timeout, name)
378378

379379
return wait.PollUntilContextTimeout(context.TODO(), poll, timeout, true, func(ctx context.Context) (bool, error) {
380380
pod, err := c.CoreV1().Pods(ns).Get(ctx, name, metav1.GetOptions{})

0 commit comments

Comments
 (0)