Skip to content

Commit a20882e

Browse files
committed
update more tests
1 parent e283882 commit a20882e

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

cmd/gubiq/consolecmd_test.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,17 @@ import (
3131
)
3232

3333
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"
3535
httpAPIs = "eth:1.0 net:1.0 rpc:1.0 web3:1.0"
3636
)
3737

3838
// spawns gubiq with the given command line args, using a set of flags to minimise
3939
// memory and disk IO. If the args don't set --datadir, the
4040
// child g gets a temporary data directory.
4141
func runMinimalGubiq(t *testing.T, args ...string) *testgubiq {
42-
// --ropsten to make the 'writing genesis to disk' faster (no accounts)
4342
// --networkid=1337 to avoid cache bump
4443
// --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",
4645
"--nat", "none", "--nodiscover", "--maxpeers", "0", "--cache", "64"}
4746
return runGubiq(t, append(allArgs, args...)...)
4847
}
@@ -61,7 +60,7 @@ func TestConsoleWelcome(t *testing.T) {
6160
gubiq.SetTemplateFunc("gover", runtime.Version)
6261
gubiq.SetTemplateFunc("gubiqver", func() string { return params.VersionWithCommit("", "") })
6362
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)"
6564
})
6665
gubiq.SetTemplateFunc("apis", func() string { return ipcAPIs })
6766

@@ -133,7 +132,7 @@ func testAttachWelcome(t *testing.T, gubiq *testgubiq, endpoint, apis string) {
133132
attach.SetTemplateFunc("gubiqver", func() string { return params.VersionWithCommit("", "") })
134133
attach.SetTemplateFunc("etherbase", func() string { return gubiq.Etherbase })
135134
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)"
137136
})
138137
attach.SetTemplateFunc("ipc", func() bool { return strings.HasPrefix(endpoint, "ipc") })
139138
attach.SetTemplateFunc("datadir", func() string { return gubiq.Datadir })

cmd/puppeth/testdata/stureby_aleth.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"minimumDifficulty": "0x20000",
1919
"difficultyBoundDivisor": "0x800",
2020
"durationLimit": "0xd",
21-
"blockReward": "0x4563918244f40000",
21+
"blockReward": "0x6f05b59d3b200000",
2222
"networkID": "0x4cb2e",
2323
"chainID": "0x4cb2e",
2424
"allowFutureBlocks": false

core/headerchain_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func TestHeaderInsertion(t *testing.T) {
7373
genesis = new(Genesis).MustCommit(db)
7474
)
7575

76-
hc, err := NewHeaderChain(db, params.AllEthashProtocolChanges, ubqhash.NewFaker(), func() bool { return false })
76+
hc, err := NewHeaderChain(db, params.AllUbqhashProtocolChanges, ubqhash.NewFaker(), func() bool { return false })
7777
if err != nil {
7878
t.Fatal(err)
7979
}

0 commit comments

Comments
 (0)