fix test
parent
0e3f18e281
commit
994ae5dcdc
|
@ -217,8 +217,8 @@ func verifyAfterSyscoinTypeBlock2(t *testing.T, d *RocksDB) {
|
|||
if dBAsset.Transactions != 2 {
|
||||
t.Fatal(fmt.Sprint("Block2: Property mismatch dbAsset.Transaction: ", dBAsset.Transactions, ". Expected: 2"))
|
||||
}
|
||||
if string(dBAsset.AssetObj.Symbol) != "" {
|
||||
t.Fatal(fmt.Sprint("Block2: Property mismatch dBAsset.AssetObj.Symbol: ", string(dBAsset.AssetObj.Symbol) , ". Expected: ''"))
|
||||
if string(dBAsset.AssetObj.Symbol) != base64.StdEncoding.EncodeToString([]byte("CAT")) {
|
||||
t.Fatal(fmt.Sprint("Block1: Property mismatch dBAsset.AssetObj.Symbol: ", string(dBAsset.AssetObj.Symbol) , ". Expected: " + base64.StdEncoding.EncodeToString([]byte("CAT"))))
|
||||
}
|
||||
pubdata := "{\"desc\":\"" + base64.StdEncoding.EncodeToString([]byte("new publicvalue")) + "\"}"
|
||||
if !bytes.Equal(dBAsset.AssetObj.PubData, []byte(pubdata)) {
|
||||
|
|
Loading…
Reference in New Issue