From 14c124aef86006dc69cc3400e6c453ed08693823 Mon Sep 17 00:00:00 2001 From: Alexander Ewetumo Date: Mon, 23 Oct 2017 17:16:15 +0100 Subject: [PATCH] Switch to flag.String from flag.StringVar, removing init() --- e2e/testing.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/e2e/testing.go b/e2e/testing.go index b7b546d94..47eda5084 100644 --- a/e2e/testing.go +++ b/e2e/testing.go @@ -17,13 +17,9 @@ import ( ) var ( - networkSelected string + networkSelected = flag.String("network", "statuschain", "-network=NETWORKNAME or -network=NETWORKID to select network used for tests") ) -func init() { - flag.StringVar(&networkSelected, "network", "statuschain", "-network=NETWORKNAME or -network=NETWORKID to select network used for tests") -} - // TestNodeOption is a callback passed to StartTestNode which alters its config. type TestNodeOption func(config *params.NodeConfig)