diff options
author | Felix Lange <fjl@twurst.com> | 2016-09-05 19:08:41 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-09-05 19:24:11 +0800 |
commit | 6b727c0440f79d12ba38f6c21f50d33b84aeaa83 (patch) | |
tree | 35c813b93218b19847e6d9e7e588377daad2c9a7 /cmd/geth/consolecmd_test.go | |
parent | 2c6be49d200a3fff660ad78aada3305f8a3e3b9a (diff) | |
download | dexon-6b727c0440f79d12ba38f6c21f50d33b84aeaa83.tar.gz dexon-6b727c0440f79d12ba38f6c21f50d33b84aeaa83.tar.zst dexon-6b727c0440f79d12ba38f6c21f50d33b84aeaa83.zip |
cmd/evm, cmd/geth, cmd/utils: move version handling to cmd/utils
Diffstat (limited to 'cmd/geth/consolecmd_test.go')
-rw-r--r-- | cmd/geth/consolecmd_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/geth/consolecmd_test.go b/cmd/geth/consolecmd_test.go index e0e549e12..3f09c0414 100644 --- a/cmd/geth/consolecmd_test.go +++ b/cmd/geth/consolecmd_test.go @@ -28,6 +28,7 @@ import ( "testing" "time" + "github.com/ethereum/go-ethereum/cmd/utils" "github.com/ethereum/go-ethereum/rpc" ) @@ -45,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 verString }) + geth.setTemplateFunc("gethver", func() string { return utils.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) @@ -131,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 verString }) + attach.setTemplateFunc("gethver", func() string { return utils.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") }) |