Browse Source

consensus: TestReactorValidatorSetChanges test fix (#7985)

pull/7988/head
Sam Kleinman 2 years ago
committed by GitHub
parent
commit
680ebc6f8e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      internal/consensus/reactor_test.go

+ 6
- 1
internal/consensus/reactor_test.go 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)
}
}


Loading…
Cancel
Save