@@ -31,18 +31,17 @@ import (
31
31
)
32
32
33
33
const (
34
- ipcAPIs = "admin:1.0 debug:1.0 eth:1.0 ubqhash:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 txpool:1.0 web3:1.0"
34
+ ipcAPIs = "admin:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 txpool:1.0 ubqhash :1.0 web3:1.0"
35
35
httpAPIs = "eth:1.0 net:1.0 rpc:1.0 web3:1.0"
36
36
)
37
37
38
38
// spawns gubiq with the given command line args, using a set of flags to minimise
39
39
// memory and disk IO. If the args don't set --datadir, the
40
40
// child g gets a temporary data directory.
41
41
func runMinimalGubiq (t * testing.T , args ... string ) * testgubiq {
42
- // --ropsten to make the 'writing genesis to disk' faster (no accounts)
43
42
// --networkid=1337 to avoid cache bump
44
43
// --syncmode=full to avoid allocating fast sync bloom
45
- allArgs := []string {"--ropsten" , "-- networkid" , "1337" , "--syncmode=full" , "--port" , "0" ,
44
+ allArgs := []string {"--networkid" , "1337" , "--syncmode=full" , "--port" , "0" ,
46
45
"--nat" , "none" , "--nodiscover" , "--maxpeers" , "0" , "--cache" , "64" }
47
46
return runGubiq (t , append (allArgs , args ... )... )
48
47
}
@@ -61,7 +60,7 @@ func TestConsoleWelcome(t *testing.T) {
61
60
gubiq .SetTemplateFunc ("gover" , runtime .Version )
62
61
gubiq .SetTemplateFunc ("gubiqver" , func () string { return params .VersionWithCommit ("" , "" ) })
63
62
gubiq .SetTemplateFunc ("niltime" , func () string {
64
- return time . Unix ( 0 , 0 ). Format ( "Mon Jan 02 2006 15:04:05 GMT-0700 (MST)" )
63
+ return "Sat Jan 28 2017 21:00:00 GMT+0100 (CET)"
65
64
})
66
65
gubiq .SetTemplateFunc ("apis" , func () string { return ipcAPIs })
67
66
@@ -133,7 +132,7 @@ func testAttachWelcome(t *testing.T, gubiq *testgubiq, endpoint, apis string) {
133
132
attach .SetTemplateFunc ("gubiqver" , func () string { return params .VersionWithCommit ("" , "" ) })
134
133
attach .SetTemplateFunc ("etherbase" , func () string { return gubiq .Etherbase })
135
134
attach .SetTemplateFunc ("niltime" , func () string {
136
- return time . Unix ( 0 , 0 ). Format ( "Mon Jan 02 2006 15:04:05 GMT-0700 (MST)" )
135
+ return "Sat Jan 28 2017 21:00:00 GMT+0100 (CET)"
137
136
})
138
137
attach .SetTemplateFunc ("ipc" , func () bool { return strings .HasPrefix (endpoint , "ipc" ) })
139
138
attach .SetTemplateFunc ("datadir" , func () string { return gubiq .Datadir })
0 commit comments