Fix error in base58check test

This commit is contained in:
Steven Roose 2018-01-31 18:01:49 +01:00 committed by John C. Vernaleo
parent 6065135ba8
commit 4443e04cb8

View file

@ -56,7 +56,7 @@ func TestBase58Check(t *testing.T) {
// bytes are missing).
testString := ""
for len := 0; len < 4; len++ {
// make a string of length `len`
testString = testString + "x"
_, _, err = base58.CheckDecode(testString)
if err != base58.ErrInvalidFormat {
t.Error("Checkdecode test failed, expected ErrInvalidFormat")