log sql.ErrNoRows which I suspect is what is leading to the flaky test
This commit is contained in:
parent
65808998b3
commit
4fbde836d4
@ -128,6 +128,7 @@ func (tr *Transformer) Init() error {
|
||||
firstBlock, retrieveErr := tr.Retriever.RetrieveFirstBlock()
|
||||
if retrieveErr != nil {
|
||||
if retrieveErr == sql.ErrNoRows {
|
||||
logrus.Error(retrieveErr)
|
||||
firstBlock = 0
|
||||
} else {
|
||||
return fmt.Errorf("error retrieving first block: %s", retrieveErr.Error())
|
||||
|
Loading…
Reference in New Issue
Block a user