core/types: fix test for TransactionsByPriceAndNonce

pull/15275/head
Jim McDonald 7 years ago
parent cefeb58598
commit c599b78f62
  1. 6
      core/types/transaction_test.go

@ -147,12 +147,12 @@ func TestTransactionPriceNonceSort(t *testing.T) {
txset := NewTransactionsByPriceAndNonce(signer, groups)
txs := Transactions{}
for {
if tx := txset.Peek(); tx != nil {
for tx := txset.Peek(); tx != nil; tx = txset.Peek() {
txs = append(txs, tx)
txset.Shift()
}
break
if len(txs) != 25*25 {
t.Errorf("expected %d transactions, found %d", 25*25, len(txs))
}
for i, txi := range txs {
fromi, _ := Sender(signer, txi)

Loading…
Cancel
Save