eventing test work with go1.13
@@ -65,13 +65,13 @@ type EventingEnvironmentFlags struct {
Channels
}
+// initializeEventingFlags registers flags used by e2e tests, calling flag.Parse() here would fail in
+// go1.13+, see https://github.com/knative/test-infra/issues/1329 for details
func initializeEventingFlags() *EventingEnvironmentFlags {
f := EventingEnvironmentFlags{}
flag.Var(&f.Channels, "channels", "The names of the channels, which are separated by comma.")
- flag.Parse()
-
// If no channel is passed through the flag, initialize it as the DefaultChannel.
if f.Channels == nil || len(f.Channels) == 0 {
f.Channels = []string{common.DefaultChannel}
