From b782ef84bd6ff64a3927ac48779c6675a8b30327 Mon Sep 17 00:00:00 2001 From: Kamandlou Date: Mon, 29 Aug 2022 17:20:48 +0430 Subject: [PATCH 1/3] fix unhandled error --- trie/util_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/trie/util_test.go b/trie/util_test.go index 252dc09e0804..a58a5d73add8 100644 --- a/trie/util_test.go +++ b/trie/util_test.go @@ -69,7 +69,10 @@ func TestTrieTracer(t *testing.T) { // Commit the changes and re-create with new root root, nodes, _ := trie.Commit(false) - db.Update(NewWithNodeSet(nodes)) + err := db.Update(NewWithNodeSet(nodes)) + if err != nil { + t.Fatalf("Unexpected error in update db, %v", err) + } trie, _ = New(common.Hash{}, root, db) trie.tracer = newTracer() From fc8dd21a0df9958001075ac602ea6bf9b1a082a7 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 30 Aug 2022 15:45:16 +0200 Subject: [PATCH 2/3] Update util_test.go --- trie/util_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trie/util_test.go b/trie/util_test.go index a58a5d73add8..1a2cb64f4946 100644 --- a/trie/util_test.go +++ b/trie/util_test.go @@ -71,7 +71,7 @@ func TestTrieTracer(t *testing.T) { root, nodes, _ := trie.Commit(false) err := db.Update(NewWithNodeSet(nodes)) if err != nil { - t.Fatalf("Unexpected error in update db, %v", err) + t.Fatal("Unexpected error in db.Update:", err) } trie, _ = New(common.Hash{}, root, db) trie.tracer = newTracer() From 4bd111800814f90cbe760c9cbe7e79797214ad90 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Fri, 2 Sep 2022 17:46:45 +0200 Subject: [PATCH 3/3] Update trie/util_test.go --- trie/util_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/trie/util_test.go b/trie/util_test.go index 1a2cb64f4946..cf6758e63d4a 100644 --- a/trie/util_test.go +++ b/trie/util_test.go @@ -69,9 +69,8 @@ func TestTrieTracer(t *testing.T) { // Commit the changes and re-create with new root root, nodes, _ := trie.Commit(false) - err := db.Update(NewWithNodeSet(nodes)) - if err != nil { - t.Fatal("Unexpected error in db.Update:", err) + if err := db.Update(NewWithNodeSet(nodes)); err != nil { + t.Fatal(err) } trie, _ = New(common.Hash{}, root, db) trie.tracer = newTracer()