Skip to content

Commit 4b9c307

Browse files
authored
trie: fix unhandled error in test (#25628)
1 parent 0d68b6b commit 4b9c307

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

trie/util_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ func TestTrieTracer(t *testing.T) {
6969

7070
// Commit the changes and re-create with new root
7171
root, nodes, _ := trie.Commit(false)
72-
db.Update(NewWithNodeSet(nodes))
72+
if err := db.Update(NewWithNodeSet(nodes)); err != nil {
73+
t.Fatal(err)
74+
}
7375
trie, _ = New(common.Hash{}, root, db)
7476
trie.tracer = newTracer()
7577

0 commit comments

Comments
 (0)