consensus: TestReactorValidatorSetChanges test fix (#7985)

This commit is contained in:
Sam Kleinman
2022-02-24 12:47:27 -05:00
committed by GitHub
parent 211b80a484
commit 680ebc6f8e

View File

@@ -2,6 +2,7 @@ package consensus
import (
"context"
"errors"
"fmt"
"os"
"path"
@@ -198,7 +199,11 @@ func waitForAndValidateBlock(
require.NoError(t, validateBlock(newBlock, activeVals))
for _, tx := range txs {
require.NoError(t, assertMempool(t, states[j].txNotifier).CheckTx(ctx, tx, nil, mempool.TxInfo{}))
err := assertMempool(t, states[j].txNotifier).CheckTx(ctx, tx, nil, mempool.TxInfo{})
if errors.Is(err, types.ErrTxInCache) {
continue
}
require.NoError(t, err)
}
}