Skip to content

Commit b66cdd8

Browse files
committed
resourceslicecontroller: add debug logs
Signed-off-by: Damien Grisonnet <[email protected]>
1 parent 76cb1db commit b66cdd8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/e2e/dra/dra.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020
"context"
2121
_ "embed"
2222
"errors"
23+
"flag"
2324
"fmt"
2425
"strings"
2526
"sync"
@@ -64,6 +65,12 @@ const (
6465
podStartTimeout = 5 * time.Minute
6566
)
6667

68+
func init() {
69+
klog.InitFlags(nil)
70+
flag.Set("v", "5")
71+
klog.SetOutput(ginkgo.GinkgoWriter)
72+
}
73+
6774
// The "DRA" label is used to select tests related to DRA in a Ginkgo label filter.
6875
//
6976
// Sub-tests starting with "control plane" when testing only the control plane components, without depending
@@ -2181,6 +2188,8 @@ var _ = framework.SIGDescribe("node")(framework.WithLabel("DRA"), func() {
21812188
gomega.Eventually(ctx, controller.GetStats).WithTimeout(30 * time.Second).Should(gomega.Equal(expectStats))
21822189

21832190
gomega.Consistently(ctx, controller.GetStats).WithTimeout(2 * mutationCacheTTL).Should(gomega.Equal(expectStats))
2191+
2192+
ginkgo.Fail("test failed")
21842193
})
21852194
})
21862195

0 commit comments

Comments
 (0)