aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-11-22 02:42:11 +0800
committerGitHub <noreply@github.com>2017-11-22 02:42:11 +0800
commit049797d40a24f96d58fb466dd5d5e89b94691ef2 (patch)
tree7da9de8defed02d43deade7d1442eac130f4b4b3
parent005665867d50a4b38e269b6b84156db2f75469a3 (diff)
parent41ef34ae402b2c0b545d94ad3a5449efe68afb8e (diff)
downloadgo-tangerine-049797d40a24f96d58fb466dd5d5e89b94691ef2.tar
go-tangerine-049797d40a24f96d58fb466dd5d5e89b94691ef2.tar.gz
go-tangerine-049797d40a24f96d58fb466dd5d5e89b94691ef2.tar.bz2
go-tangerine-049797d40a24f96d58fb466dd5d5e89b94691ef2.tar.lz
go-tangerine-049797d40a24f96d58fb466dd5d5e89b94691ef2.tar.xz
go-tangerine-049797d40a24f96d58fb466dd5d5e89b94691ef2.tar.zst
go-tangerine-049797d40a24f96d58fb466dd5d5e89b94691ef2.zip
Merge pull request #15521 from rjl493456442/clean_tx_journal
les: clean up tx journal file after testing
-rw-r--r--les/handler_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/les/handler_test.go b/les/handler_test.go
index 9e63e15a6..a9dac89b4 100644
--- a/les/handler_test.go
+++ b/les/handler_test.go
@@ -416,7 +416,9 @@ func TestTransactionStatusLes2(t *testing.T) {
db, _ := ethdb.NewMemDatabase()
pm := newTestProtocolManagerMust(t, false, 0, nil, nil, nil, db)
chain := pm.blockchain.(*core.BlockChain)
- txpool := core.NewTxPool(core.DefaultTxPoolConfig, params.TestChainConfig, chain)
+ config := core.DefaultTxPoolConfig
+ config.Journal = ""
+ txpool := core.NewTxPool(config, params.TestChainConfig, chain)
pm.txpool = txpool
peer, _ := newTestPeer(t, "peer", 2, pm, true)
defer peer.close()