Commit f302a0e2 authored by pengjun's avatar pengjun

#627 fix unit test

parent f2dc03fd
...@@ -318,7 +318,7 @@ func TestCollateralize(t *testing.T) { ...@@ -318,7 +318,7 @@ func TestCollateralize(t *testing.T) {
res, err = exec.Query("CollateralizeUserBalance", res, err = exec.Query("CollateralizeUserBalance",
types.Encode(&pkt.ReqCollateralizeRecordByAddr{Addr: string(Nodes[1]), Status: 1})) types.Encode(&pkt.ReqCollateralizeRecordByAddr{Addr: string(Nodes[1]), Status: 1}))
assert.Nil(t, err) assert.Nil(t, err)
assert.Equal(t, int64(100), res.(*pkt.RepCollateralizeUserBalance).Balance) assert.Equal(t, int64(100)*types.Coin, res.(*pkt.RepCollateralizeUserBalance).Balance)
// collateralize append // collateralize append
p5 := &pkt.CollateralizeAppendTx{ p5 := &pkt.CollateralizeAppendTx{
......
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