Commit a1c9a915 authored by mdj33's avatar mdj33

fix ut

parent c86b4fdf
......@@ -123,6 +123,9 @@ func (a *action) propBoard(prob *auty.ProposalBoard) (*types.Receipt, error) {
} else {
act, err = a.getOldPropBoard(prob)
}
if err != nil {
return nil, errors.Wrap(err, "getPropBoard")
}
if len(act.Boards) > maxBoards || len(act.Boards) < minBoards {
alog.Error("propBoard ", "proposal boards number is invaild", len(prob.Boards))
......
......@@ -76,7 +76,7 @@ func testPropChange(t *testing.T, env *ExecEnv, exec drivers.Driver, stateDB dbm
Year: 2019,
Month: 7,
Day: 10,
Changes: []*auty.Change{{Cancel: true, Addr: AddrA}, {Cancel: false, Addr: Addr18}},
Changes: []*auty.Change{{Cancel: true, Addr: Addr19}},
StartBlockHeight: env.blockHeight + 5,
EndBlockHeight: env.blockHeight + startEndBlockPeriod + 10,
}
......
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