From 18bfb102b400abbf1ece742338002b2fe84426a9 Mon Sep 17 00:00:00 2001 From: olumuyiwadad Date: Mon, 8 Nov 2021 15:41:13 +0530 Subject: [PATCH] Update Test for blockchain.go - TestBlocksHashCacheUpdate - TestAreTwoBlocksSamePath Collection test for BlocksHashCache cases 1. When init new chain 2. when insertChain 3. when insertFork 4. When adding new block by mining 5. When adding new block by syncing with other nodes --- core/blockchain_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/blockchain_test.go b/core/blockchain_test.go index e70ffe3ef8..9dc4b65117 100644 --- a/core/blockchain_test.go +++ b/core/blockchain_test.go @@ -18,13 +18,14 @@ package core import ( "fmt" - "github.com/XinFinOrg/XDPoSChain/core/rawdb" "math/big" "math/rand" "sync" "testing" "time" + "github.com/XinFinOrg/XDPoSChain/core/rawdb" + "github.com/XinFinOrg/XDPoSChain/common" "github.com/XinFinOrg/XDPoSChain/consensus/ethash" "github.com/XinFinOrg/XDPoSChain/core/state" @@ -1323,7 +1324,7 @@ func TestLargeReorgTrieGC(t *testing.T) { } /* - Collection test for BlochsHashCache + Collection test for BlocksHashCache cases 1. When init new chain 2. when insertChain