Fix query in legacy indexer test

This commit is contained in:
Prathamesh Musale 2022-08-16 16:07:44 +05:30
parent d6563c079c
commit 7b19aee0e1
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ func TestLegacyPGXIndexer(t *testing.T) {
t.Run("Publish and index header IPLDs", func(t *testing.T) {
setupLegacyPGX(t)
defer tearDown(t)
defer checkTxClosure(t, 0, 0, 0)
defer checkTxClosure(t, 1, 0, 1)
test.TestLegacyIndexer(t, db)
})

View File

@ -68,7 +68,7 @@ func SetupLegacyTestData(t *testing.T, ind interfaces.StateDiffIndexer) {
}
func TestLegacyIndexer(t *testing.T, db sql.Database) {
pgStr := `SELECT cid, td, reward, block_hash, coinbase
pgStr := `SELECT cid, cast(td AS TEXT), cast(reward AS TEXT), block_hash, coinbase
FROM eth.header_cids
WHERE block_number = $1`
// check header was properly indexed