diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-11-25 23:55:06 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-11-25 23:55:06 +0800 |
commit | 4c8c5e2f7410d850ee6068b46c8b880f733743d4 (patch) | |
tree | c0070af77b249084355d4f659a09809d08633840 /cmd/geth/consolecmd_test.go | |
parent | d1a95c643eadd506f6ae85784d22c7823e411ee9 (diff) | |
download | dexon-4c8c5e2f7410d850ee6068b46c8b880f733743d4.tar.gz dexon-4c8c5e2f7410d850ee6068b46c8b880f733743d4.tar.zst dexon-4c8c5e2f7410d850ee6068b46c8b880f733743d4.zip |
cmd, ethstats, les, mobile, params: native netstats (#3336)
Diffstat (limited to 'cmd/geth/consolecmd_test.go')
-rw-r--r-- | cmd/geth/consolecmd_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/geth/consolecmd_test.go b/cmd/geth/consolecmd_test.go index 3f09c0414..820e9d082 100644 --- a/cmd/geth/consolecmd_test.go +++ b/cmd/geth/consolecmd_test.go @@ -28,7 +28,7 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/cmd/utils" + "github.com/ethereum/go-ethereum/params" "github.com/ethereum/go-ethereum/rpc" ) @@ -46,7 +46,7 @@ func TestConsoleWelcome(t *testing.T) { // Gather all the infos the welcome message needs to contain geth.setTemplateFunc("goos", func() string { return runtime.GOOS }) geth.setTemplateFunc("gover", runtime.Version) - geth.setTemplateFunc("gethver", func() string { return utils.Version }) + geth.setTemplateFunc("gethver", func() string { return params.Version }) geth.setTemplateFunc("niltime", func() string { return time.Unix(0, 0).Format(time.RFC1123) }) geth.setTemplateFunc("apis", func() []string { apis := append(strings.Split(rpc.DefaultIPCApis, ","), rpc.MetadataApi) @@ -132,7 +132,7 @@ func testAttachWelcome(t *testing.T, geth *testgeth, endpoint string) { // Gather all the infos the welcome message needs to contain attach.setTemplateFunc("goos", func() string { return runtime.GOOS }) attach.setTemplateFunc("gover", runtime.Version) - attach.setTemplateFunc("gethver", func() string { return utils.Version }) + attach.setTemplateFunc("gethver", func() string { return params.Version }) attach.setTemplateFunc("etherbase", func() string { return geth.Etherbase }) attach.setTemplateFunc("niltime", func() string { return time.Unix(0, 0).Format(time.RFC1123) }) attach.setTemplateFunc("ipc", func() bool { return strings.HasPrefix(endpoint, "ipc") }) |