Fix flag provided but not defined issue

in go 1.13 we are facing above issue,
This commit fixs by calling testing.Init()

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2020-02-19 14:07:11 +05:30 committed by mergify[bot]
parent d5a0606c33
commit cb08a63a02

View File

@ -57,5 +57,6 @@ func handleFlags() {
config.CopyFlags(config.Flags, flag.CommandLine) config.CopyFlags(config.Flags, flag.CommandLine)
framework.RegisterCommonFlags(flag.CommandLine) framework.RegisterCommonFlags(flag.CommandLine)
framework.RegisterClusterFlags(flag.CommandLine) framework.RegisterClusterFlags(flag.CommandLine)
testing.Init()
flag.Parse() flag.Parse()
} }