Update readme and fix pointer bug

This commit is contained in:
Alexander Ewetumo 2017-10-23 17:28:12 +01:00
parent aa2779d3a9
commit d856660d09
2 changed files with 3 additions and 5 deletions

View File

@ -18,17 +18,15 @@ for running all test. It by default uses the `StatusChain` network.
To use the `mainnet` network for testing using network name:
```bash
go test -v ./e2e/... -args -network=mainnet
go test -v ./e2e/... -network=mainnet
```
To use the `ropsten` network for testing using network id:
```bash
go test -v ./e2e/... -args -network=3
go test -v ./e2e/... -network=3
```
It's important to ensure before the flag that the `-args` flag is included else
the `-network` flag or any other custom flag will not be respected or parsed.
## Run

View File

@ -91,7 +91,7 @@ func FirstBlockHash(nodeManager common.NodeManager) (string, error) {
// GetNetworkID returns appropriate network id for test based on
// default or provided -network flag.
func GetNetworkID() int {
switch strings.ToLower(networkSelected) {
switch strings.ToLower(*networkSelected) {
case fmt.Sprintf("%d", params.MainNetworkID), "mainnet":
return params.MainNetworkID
case fmt.Sprintf("%d", params.RinkebyNetworkID), "rinkeby":