From 8ca2436bdba2d7f291aea916bc6479ee50cbde9c Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Fri, 30 Aug 2019 22:06:41 -0400 Subject: [PATCH] Fix failure running `make build test` in cluster/images/etcd Change-Id: I5072d06402d211c17c8c5fb952e193bd1e57c07d --- cluster/images/etcd/migrate/integration_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cluster/images/etcd/migrate/integration_test.go b/cluster/images/etcd/migrate/integration_test.go index 48b55726d67..2d3872fa7b5 100644 --- a/cluster/images/etcd/migrate/integration_test.go +++ b/cluster/images/etcd/migrate/integration_test.go @@ -25,6 +25,7 @@ import ( "crypto/x509" "crypto/x509/pkix" "encoding/pem" + "flag" "fmt" "io/ioutil" "math/big" @@ -37,6 +38,7 @@ import ( "time" "github.com/blang/semver" + "k8s.io/klog" ) var ( @@ -45,6 +47,13 @@ var ( testVersionLatest = &EtcdVersion{semver.MustParse("3.1.12")} ) +func init() { + // Enable klog which is used in dependencies + klog.InitFlags(nil) + flag.Set("logtostderr", "true") + flag.Set("v", "9") +} + func TestMigrate(t *testing.T) { migrations := []struct { title string