Fix query in legacy indexer test
This commit is contained in:
parent
d6563c079c
commit
7b19aee0e1
@ -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)
|
||||
})
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user