@@ -45,6 +45,7 @@ func TestConsoleWelcome(t *testing.T) {
4545
4646 // Gather all the infos the welcome message needs to contain
4747 geth .setTemplateFunc ("goos" , func () string { return runtime .GOOS })
48+ geth .setTemplateFunc ("goarch" , func () string { return runtime .GOARCH })
4849 geth .setTemplateFunc ("gover" , runtime .Version )
4950 geth .setTemplateFunc ("gethver" , func () string { return params .Version })
5051 geth .setTemplateFunc ("niltime" , func () string { return time .Unix (0 , 0 ).Format (time .RFC1123 ) })
@@ -58,7 +59,7 @@ func TestConsoleWelcome(t *testing.T) {
5859 geth .expect (`
5960Welcome to the Geth JavaScript console!
6061
61- instance: Geth/v{{gethver}}/{{goos}}/{{gover}}
62+ instance: Geth/v{{gethver}}/{{goos}}-{{goarch}} /{{gover}}
6263coinbase: {{.Etherbase}}
6364at block: 0 ({{niltime}})
6465 datadir: {{.Datadir}}
@@ -131,6 +132,7 @@ func testAttachWelcome(t *testing.T, geth *testgeth, endpoint string) {
131132
132133 // Gather all the infos the welcome message needs to contain
133134 attach .setTemplateFunc ("goos" , func () string { return runtime .GOOS })
135+ attach .setTemplateFunc ("goarch" , func () string { return runtime .GOARCH })
134136 attach .setTemplateFunc ("gover" , runtime .Version )
135137 attach .setTemplateFunc ("gethver" , func () string { return params .Version })
136138 attach .setTemplateFunc ("etherbase" , func () string { return geth .Etherbase })
@@ -152,7 +154,7 @@ func testAttachWelcome(t *testing.T, geth *testgeth, endpoint string) {
152154 attach .expect (`
153155Welcome to the Geth JavaScript console!
154156
155- instance: Geth/v{{gethver}}/{{goos}}/{{gover}}
157+ instance: Geth/v{{gethver}}/{{goos}}-{{goarch}} /{{gover}}
156158coinbase: {{etherbase}}
157159at block: 0 ({{niltime}}){{if ipc}}
158160 datadir: {{datadir}}{{end}}
0 commit comments