From 85913cfb3c5d5bbd0f4738162487b290691a350a Mon Sep 17 00:00:00 2001 From: georgehao Date: Sun, 23 Mar 2025 00:00:58 +0800 Subject: [PATCH] format --- ethclient/gethclient/gethclient_test.go | 89 ++++++++++++------------- 1 file changed, 41 insertions(+), 48 deletions(-) diff --git a/ethclient/gethclient/gethclient_test.go b/ethclient/gethclient/gethclient_test.go index a57906b81d..e5341e9c21 100644 --- a/ethclient/gethclient/gethclient_test.go +++ b/ethclient/gethclient/gethclient_test.go @@ -115,6 +115,47 @@ func TestGethClient(t *testing.T) { name string test func(t *testing.T) }{ + { + "TestGetProof1", + func(t *testing.T) { testGetProof(t, client, testAddr) }, + }, { + "TestGetProof2", + func(t *testing.T) { testGetProof(t, client, testContract) }, + }, { + "TestGetProofEmpty", + func(t *testing.T) { testGetProof(t, client, testEmpty) }, + }, { + "TestGetProofNonExistent", + func(t *testing.T) { testGetProofNonExistent(t, client) }, + }, { + "TestGetProofCanonicalizeKeys", + func(t *testing.T) { testGetProofCanonicalizeKeys(t, client) }, + }, { + "TestGCStats", + func(t *testing.T) { testGCStats(t, client) }, + }, { + "TestMemStats", + func(t *testing.T) { testMemStats(t, client) }, + }, { + "TestGetNodeInfo", + func(t *testing.T) { testGetNodeInfo(t, client) }, + }, { + "TestSubscribePendingTxHashes", + func(t *testing.T) { testSubscribePendingTransactions(t, client) }, + }, { + "TestSubscribePendingTxs", + func(t *testing.T) { testSubscribeFullPendingTransactions(t, client) }, + }, { + "TestCallContract", + func(t *testing.T) { testCallContract(t, client) }, + }, { + "TestCallContractWithBlockOverrides", + func(t *testing.T) { testCallContractWithBlockOverrides(t, client) }, + }, + // The testaccesslist is a bit time-sensitive: the newTestBackend imports + // one block. The `testAccessList` fails if the miner has not yet created a + // new pending-block after the import event. + // Hence: this test should be last, execute the tests serially. { "TestAccessList", func(t *testing.T) { testAccessList(t, client) }, @@ -123,54 +164,6 @@ func TestGethClient(t *testing.T) { "TestBatchAccessList", func(t *testing.T) { testBatchAccessList(t, client) }, }, - { - "TestGetProof", - func(t *testing.T) { testGetProof(t, client, testAddr) }, - }, - { - "TestGetProof2", - func(t *testing.T) { testGetProof(t, client, testContract) }, - }, - { - "TestGetProofEmpty", - func(t *testing.T) { testGetProof(t, client, testEmpty) }, - }, - { - "TestGetProofNonExistent", - func(t *testing.T) { testGetProofNonExistent(t, client) }, - }, - { - "TestGetProofCanonicalizeKeys", - func(t *testing.T) { testGetProofCanonicalizeKeys(t, client) }, - }, - { - "TestGCStats", - func(t *testing.T) { testGCStats(t, client) }, - }, - { - "TestMemStats", - func(t *testing.T) { testMemStats(t, client) }, - }, - { - "TestGetNodeInfo", - func(t *testing.T) { testGetNodeInfo(t, client) }, - }, - { - "TestSubscribePendingTxHashes", - func(t *testing.T) { testSubscribePendingTransactions(t, client) }, - }, - { - "TestSubscribePendingTxs", - func(t *testing.T) { testSubscribeFullPendingTransactions(t, client) }, - }, - { - "TestCallContract", - func(t *testing.T) { testCallContract(t, client) }, - }, - { - "TestCallContractWithBlockOverrides", - func(t *testing.T) { testCallContractWithBlockOverrides(t, client) }, - }, { "TestSetHead", func(t *testing.T) { testSetHead(t, client) },