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

fix UT

parent e4a01d14
......@@ -139,7 +139,7 @@ func (suite *CommitTestSuite) SetupSuite() {
}
func (suite *CommitTestSuite) TestSetup() {
nodeConfigKey := calcParaNodeGroupKey(Title)
nodeConfigKey := calcManageConfigNodesKey(Title)
suite.T().Log(string(nodeConfigKey))
_, err := suite.stateDB.Get(nodeConfigKey)
if err != nil {
......
......@@ -49,7 +49,11 @@ func (suite *NodeManageTestSuite) SetupSuite() {
suite.exec.SetAPI(suite.api)
enableParacrossTransfer = false
types.SetDappFork(Title, pt.ParaX, pt.ForkCommitTx, 0)
forkHeight := types.GetDappFork(pt.ParaX,pt.ForkCommitTx)
if forkHeight == types.MaxHeight{
types.SetDappFork(Title, pt.ParaX, pt.ForkCommitTx, 0)
}
// TODO, more fields
// setup block
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