From eb9ac63658c7a8ec3db9404d85a050dbf0cdfddb Mon Sep 17 00:00:00 2001 From: Darioush Jalali Date: Tue, 25 Oct 2022 09:53:47 -0700 Subject: [PATCH] fixes flakes in TestArchiveBlockChainSnapsDisabled (#316) --- core/test_blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/test_blockchain.go b/core/test_blockchain.go index 50ef515d62..29b465a22f 100644 --- a/core/test_blockchain.go +++ b/core/test_blockchain.go @@ -1695,6 +1695,7 @@ func TestStatefulPrecompiles(t *testing.T, create func(db ethdb.Database, chainC if err := blockchain.Accept(chain[0]); err != nil { t.Fatal(err) } + blockchain.DrainAcceptorQueue() genesisState, err := blockchain.StateAt(blockchain.Genesis().Root()) if err != nil { @@ -1718,6 +1719,5 @@ func TestStatefulPrecompiles(t *testing.T, create func(db ethdb.Database, chainC } // This tests that the precompiles work as expected when they are enabled - checkBlockChainState(t, blockchain, gspec, chainDB, create, checkState) }