fix tests

pull/541/head
sidhujag 2020-09-04 12:07:38 -07:00
parent ace1b61480
commit 9f0c69b865
1 changed files with 1 additions and 7 deletions

View File

@ -371,7 +371,7 @@ func TestRocksDB_Index_SyscoinType(t *testing.T) {
verifyGetTransactions(t, d, dbtestdata.AddrS4, 0, 1000000, []txidIndex{
{dbtestdata.TxidS2T1, 1},
}, nil)
verifyGetTransactions(t, d, "tsys1q4hg3e2lcyx87muctu26dvmnuz7lpm3lpvcabad", 500000, 1000000, []txidIndex{}, errors.New("checksum mismatch"))
verifyGetTransactions(t, d, "SgBVZhGLjqRz8ufXFwLhZvXpUMKqoduBad", 500000, 1000000, []txidIndex{}, errors.New("checksum mismatch"))
// GetBestBlock
height, hash, err := d.GetBestBlock()
@ -454,12 +454,6 @@ func TestRocksDB_Index_SyscoinType(t *testing.T) {
dbtestdata.TxidS2T1 + "01" + dbtestdata.TxidS1T1 + varuintToHex(1),
nil,
},
{
"00000070",
dbtestdata.TxidS1T0 + "01" + "0000000000000000000000000000000000000000000000000000000000000000" + varintToHex(0) +
dbtestdata.TxidS1T1 + "01" + dbtestdata.TxidS1T1INPUT0 + varuintToHex(0),
nil,
},
}); err != nil {
{
t.Fatal(err)