core: fix pool tests

This commit is contained in:
Felix Lange 2019-06-17 11:41:14 +02:00 committed by Péter Szilágyi
parent 049300a805
commit 9df266354e
No known key found for this signature in database
GPG key ID: E9AE538CEDF8293D

View file

@ -280,7 +280,7 @@ func TestTransactionQueue(t *testing.T) {
pool.currentState.SetNonce(from, 2)
pool.enqueueTx(tx.Hash(), tx)
<-pool.promoteExecutables([]common.Address{from})
<-pool.requestPromoteExecutables(newAccountSet(pool.signer, from))
if _, ok := pool.pending[from].txs.items[tx.Nonce()]; ok {
t.Error("expected transaction to be in tx pool")
}