Skip to content

Commit 8ca2436

Browse files
committed
Fix failure running make build test in cluster/images/etcd
Change-Id: I5072d06402d211c17c8c5fb952e193bd1e57c07d
1 parent 8fbfdf8 commit 8ca2436

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cluster/images/etcd/migrate/integration_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import (
2525
"crypto/x509"
2626
"crypto/x509/pkix"
2727
"encoding/pem"
28+
"flag"
2829
"fmt"
2930
"io/ioutil"
3031
"math/big"
@@ -37,6 +38,7 @@ import (
3738
"time"
3839

3940
"github.com/blang/semver"
41+
"k8s.io/klog"
4042
)
4143

4244
var (
@@ -45,6 +47,13 @@ var (
4547
testVersionLatest = &EtcdVersion{semver.MustParse("3.1.12")}
4648
)
4749

50+
func init() {
51+
// Enable klog which is used in dependencies
52+
klog.InitFlags(nil)
53+
flag.Set("logtostderr", "true")
54+
flag.Set("v", "9")
55+
}
56+
4857
func TestMigrate(t *testing.T) {
4958
migrations := []struct {
5059
title string

0 commit comments

Comments
 (0)