From b21ffa88afc577a34d4fbfeee393c7a6f05e0567 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Tue, 15 Apr 2025 16:10:51 +0800 Subject: [PATCH] eth: fix test --- eth/api_backend_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eth/api_backend_test.go b/eth/api_backend_test.go index 8daf00c2ef..049f68d827 100644 --- a/eth/api_backend_test.go +++ b/eth/api_backend_test.go @@ -55,7 +55,7 @@ var ( signer = types.LatestSignerForChainID(gspec.Config.ChainID) ) -func initBackend(t *testing.T, withLocal bool) *EthAPIBackend { +func initBackend(withLocal bool) *EthAPIBackend { var ( // Create a database pre-initialize with a genesis block db = rawdb.NewMemoryDatabase() @@ -66,7 +66,7 @@ func initBackend(t *testing.T, withLocal bool) *EthAPIBackend { txconfig := legacypool.DefaultConfig txconfig.Journal = "" // Don't litter the disk with test journals - blobPool := blobpool.New(blobpool.Config{Datadir: t.TempDir()}, chain, nil) + blobPool := blobpool.New(blobpool.Config{Datadir: ""}, chain, nil) legacyPool := legacypool.New(txconfig, chain) txpool, _ := txpool.New(txconfig.PriceLimit, chain, []txpool.SubPool{legacyPool, blobPool}) @@ -132,7 +132,7 @@ func TestSendTx(t *testing.T) { } func testSendTx(t *testing.T, withLocal bool) { - b := initBackend(t, withLocal) + b := initBackend(withLocal) txA := pricedSetCodeTx(0, 250000, uint256.NewInt(params.GWei), uint256.NewInt(params.GWei), key, []unsignedAuth{ {