Skip to content

Commit

Permalink
miner: fix TestRejectedConditionalTx flake
Browse files Browse the repository at this point in the history
  • Loading branch information
protolambda committed Nov 26, 2024
1 parent 550ddf9 commit da595e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions miner/miner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ func TestRejectedConditionalTx(t *testing.T) {
})
tx.SetConditional(&types.TransactionConditional{TimestampMax: uint64Ptr(timestamp - 1)})

// 1 pending tx
miner.txpool.Add(types.Transactions{tx}, true, false)
// 1 pending tx (synchronously, it has to be there before it can be rejected)
miner.txpool.Add(types.Transactions{tx}, true, true)
if !miner.txpool.Has(tx.Hash()) {
t.Fatalf("conditional tx is not in the mempool")
}
Expand Down

0 comments on commit da595e3

Please sign in to comment.