light: fix differTries err message in tests (#25358)

This commit is contained in:
Eval EXEC 2022-07-25 17:54:31 +08:00 committed by GitHub
parent d2247d9f5d
commit 6c4e5d06e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ func diffTries(t1, t2 state.Trie) error {
case i1.Err != nil: case i1.Err != nil:
return fmt.Errorf("full trie iterator error: %v", i1.Err) return fmt.Errorf("full trie iterator error: %v", i1.Err)
case i2.Err != nil: case i2.Err != nil:
return fmt.Errorf("light trie iterator error: %v", i1.Err) return fmt.Errorf("light trie iterator error: %v", i2.Err)
case i1.Next(): case i1.Next():
return fmt.Errorf("full trie iterator has more k/v pairs") return fmt.Errorf("full trie iterator has more k/v pairs")
case i2.Next(): case i2.Next():