mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
trie: add missing tests
This commit is contained in:
parent
827456711a
commit
150b5b1a03
1 changed files with 7 additions and 0 deletions
|
|
@ -732,6 +732,13 @@ func syncWith(t *testing.T, root common.Hash, db ethdb.Database, srcDb *Database
|
|||
}
|
||||
}
|
||||
|
||||
// Tests that the syncing target is keeping moving which may overwrite the stale
|
||||
// states synced in the last cycle.
|
||||
func TestSyncMovingTarget(t *testing.T) {
|
||||
testSyncMovingTarget(t, rawdb.HashScheme)
|
||||
testSyncMovingTarget(t, rawdb.PathScheme)
|
||||
}
|
||||
|
||||
func testSyncMovingTarget(t *testing.T, scheme string) {
|
||||
// Create a random trie to copy
|
||||
_, srcDb, srcTrie, srcData := makeTestTrie(scheme)
|
||||
|
|
|
|||
Loading…
Reference in a new issue