Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit 15ae729

Browse files
committed
pmem-csi-driver test: enable klog/v2
To see log output, we must initialize the arguments and run the test with -v=5.
1 parent 1512952 commit 15ae729

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/pmem-csi-driver/pmem-csi-driver_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import (
1515
"os"
1616
"testing"
1717

18+
"k8s.io/klog/v2"
19+
1820
"github.com/stretchr/testify/assert"
1921
"github.com/stretchr/testify/require"
2022
)
@@ -25,6 +27,10 @@ var (
2527
keyFile = os.ExpandEnv("${TEST_WORK}/pmem-ca/pmem-registry-key.pem")
2628
)
2729

30+
func init() {
31+
klog.InitFlags(nil)
32+
}
33+
2834
func TestMetrics(t *testing.T) {
2935
cases := map[string]struct {
3036
path string

0 commit comments

Comments
 (0)