Skip to content

Commit 7ed17f1

Browse files
authored
trie: fix TestOneElementProof expected value message (#32738)
- Correct the error message in TestOneElementProof to expect 'v' instead of 'k'. - The trie is updated with key "k" and value "v"; on mismatch the expected value must be 'v'. - Aligns the message with the actual test logic and other similar checks in this file, reducing confusion during test failures. No behavioral changes.
1 parent ad55a3e commit 7ed17f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trie/proof_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func TestOneElementProof(t *testing.T) {
109109
t.Fatalf("prover %d: failed to verify proof: %v\nraw proof: %x", i, err, proof)
110110
}
111111
if !bytes.Equal(val, []byte("v")) {
112-
t.Fatalf("prover %d: verified value mismatch: have %x, want 'k'", i, val)
112+
t.Fatalf("prover %d: verified value mismatch: have %x, want 'v'", i, val)
113113
}
114114
}
115115
}

0 commit comments

Comments
 (0)