Skip to content

Commit eefa041

Browse files
committed
tests: fix remaining test cases that was failing due to xhash change
1 parent 2aa7cec commit eefa041

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cmd/prlx/consolecmd_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
)
3131

3232
const (
33-
ipcAPIs = "admin:1.0 debug:1.0 eth:1.0 xhash:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 txpool:1.0 web3:1.0"
33+
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 web3:1.0 xhash:1.0"
3434
httpAPIs = "eth:1.0 net:1.0 rpc:1.0 web3:1.0"
3535
)
3636

@@ -63,7 +63,7 @@ func TestConsoleWelcome(t *testing.T) {
6363
prlx.SetTemplateFunc("gover", runtime.Version)
6464
prlx.SetTemplateFunc("prlxver", func() string { return params.VersionWithCommit("", "") })
6565
prlx.SetTemplateFunc("niltime", func() string {
66-
return time.Unix(1758061124, 0).Format("Mon Jan 02 2006 15:04:05 GMT-0700 (MST)")
66+
return time.Unix(1759695695, 0).Format("Mon Jan 02 2006 15:04:05 GMT-0700 (MST)")
6767
})
6868
prlx.SetTemplateFunc("apis", func() string { return ipcAPIs })
6969

@@ -134,7 +134,7 @@ func testAttachWelcome(t *testing.T, prlx *testprlx, endpoint, apis string) {
134134
attach.SetTemplateFunc("prlxver", func() string { return params.VersionWithCommit("", "") })
135135
attach.SetTemplateFunc("coinbase", func() string { return prlx.Coinbase })
136136
attach.SetTemplateFunc("niltime", func() string {
137-
return time.Unix(1758061124, 0).Format("Mon Jan 02 2006 15:04:05 GMT-0700 (MST)")
137+
return time.Unix(1759695695, 0).Format("Mon Jan 02 2006 15:04:05 GMT-0700 (MST)")
138138
})
139139
attach.SetTemplateFunc("ipc", func() bool { return strings.HasPrefix(endpoint, "ipc") })
140140
attach.SetTemplateFunc("datadir", func() string { return prlx.Datadir })

core/forkid/forkid_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func TestCreation(t *testing.T) {
5252
params.TestnetChainConfig,
5353
params.TestnetGenesisHash,
5454
[]testcase{
55-
{0, ID{Hash: checksumToBytes(0xde0b2089), Next: 0}}, // No forks on testnet.
55+
{0, ID{Hash: checksumToBytes(0x55049867), Next: 0}}, // No forks on testnet.
5656
// TODO: Expand this test case when more forks are added.
5757
},
5858
},

0 commit comments

Comments
 (0)