Add networkSelected flag for test

This commit is contained in:
Alexander Ewetumo 2017-10-23 14:27:14 +01:00
parent c500fbc423
commit d341e385fa
1 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,14 @@ import (
. "github.com/status-im/status-go/testing" //nolint: golint
)
var (
networkSelected string
)
func init(
flag.StringVar(&networkSelected, "network", "statuschain","Set's the network to be used for testing")
)
// TestNodeOption is a callback passed to StartTestNode which alters its config.
type TestNodeOption func(config *params.NodeConfig)