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

Commit

Permalink
pmem-csi-driver test: enable klog/v2
Browse files Browse the repository at this point in the history
To see log output, we must initialize the arguments and run the test
with -v=5.
  • Loading branch information
pohly committed Nov 20, 2020
1 parent f126da9 commit fba7b1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/pmem-csi-driver/pmem-csi-driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import (
"os"
"testing"

"k8s.io/klog/v2"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand All @@ -25,6 +27,10 @@ var (
keyFile = os.ExpandEnv("${TEST_WORK}/pmem-ca/pmem-registry-key.pem")
)

func init() {
klog.InitFlags(nil)
}

func TestMetrics(t *testing.T) {
cases := map[string]struct {
path string
Expand Down

0 comments on commit fba7b1a

Please sign in to comment.