core/state: fix typos in test error message (#22962)

This commit is contained in:
Guillaume Ballet 2021-05-31 12:43:18 +02:00 committed by GitHub
parent 08ea52e77a
commit 2cde472650
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,7 @@ func TestIntermediateLeaks(t *testing.T) {
t.Errorf("entry missing from the transition database: %x -> %x", key, fvalue) t.Errorf("entry missing from the transition database: %x -> %x", key, fvalue)
} }
if !bytes.Equal(fvalue, tvalue) { if !bytes.Equal(fvalue, tvalue) {
t.Errorf("the value associate key %x is mismatch,: %x in transition database ,%x in final database", key, tvalue, fvalue) t.Errorf("value mismatch at key %x: %x in transition database, %x in final database", key, tvalue, fvalue)
} }
} }
it.Release() it.Release()
@ -139,7 +139,7 @@ func TestIntermediateLeaks(t *testing.T) {
t.Errorf("extra entry in the transition database: %x -> %x", key, it.Value()) t.Errorf("extra entry in the transition database: %x -> %x", key, it.Value())
} }
if !bytes.Equal(fvalue, tvalue) { if !bytes.Equal(fvalue, tvalue) {
t.Errorf("the value associate key %x is mismatch,: %x in transition database ,%x in final database", key, tvalue, fvalue) t.Errorf("value mismatch at key %x: %x in transition database, %x in final database", key, tvalue, fvalue)
} }
} }
} }