diff --git a/interface_test.go b/interface_test.go index 31f4a2ba..907edf00 100644 --- a/interface_test.go +++ b/interface_test.go @@ -184,9 +184,12 @@ func testExistsTxSha(tc *testContext) bool { // The transaction must exist in the database. txHash := tx.Sha() if exists := tc.db.ExistsTxSha(txHash); !exists { - tc.t.Errorf("ExistsTxSha (%s): block #%d (%s) "+ - "tx #%d (%s) does not exist", tc.dbType, - tc.blockHeight, tc.blockHash, i, txHash) + _, err := tc.db.FetchTxBySha(txHash) + if err != nil { + tc.t.Errorf("ExistsTxSha (%s): block #%d (%s) "+ + "tx #%d (%s) does not exist", tc.dbType, + tc.blockHeight, tc.blockHash, i, txHash) + } return false } }