Commit de282755 authored by mdj33's avatar mdj33 Committed by vipwzw

fix UT

parent e4a01d14
...@@ -139,7 +139,7 @@ func (suite *CommitTestSuite) SetupSuite() { ...@@ -139,7 +139,7 @@ func (suite *CommitTestSuite) SetupSuite() {
} }
func (suite *CommitTestSuite) TestSetup() { func (suite *CommitTestSuite) TestSetup() {
nodeConfigKey := calcParaNodeGroupKey(Title) nodeConfigKey := calcManageConfigNodesKey(Title)
suite.T().Log(string(nodeConfigKey)) suite.T().Log(string(nodeConfigKey))
_, err := suite.stateDB.Get(nodeConfigKey) _, err := suite.stateDB.Get(nodeConfigKey)
if err != nil { if err != nil {
......
...@@ -49,7 +49,11 @@ func (suite *NodeManageTestSuite) SetupSuite() { ...@@ -49,7 +49,11 @@ func (suite *NodeManageTestSuite) SetupSuite() {
suite.exec.SetAPI(suite.api) suite.exec.SetAPI(suite.api)
enableParacrossTransfer = false enableParacrossTransfer = false
forkHeight := types.GetDappFork(pt.ParaX,pt.ForkCommitTx)
if forkHeight == types.MaxHeight{
types.SetDappFork(Title, pt.ParaX, pt.ForkCommitTx, 0) types.SetDappFork(Title, pt.ParaX, pt.ForkCommitTx, 0)
}
// TODO, more fields // TODO, more fields
// setup block // setup block
blockDetail := &types.BlockDetail{ blockDetail := &types.BlockDetail{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment