1
0
Fork 0
forked from External/grumble

Merge PR #29: Fix failing tests on Go 1.10

This commit is contained in:
Ian Bishop 2018-09-02 05:05:57 +10:00 committed by Tim Cooper
parent cb1d3db727
commit 41f8b391e4
2 changed files with 3 additions and 2 deletions

View file

@ -56,7 +56,7 @@ func TestReadNonExistantKey(t *testing.T) {
key := hex.EncodeToString(h.Sum(nil))
buf, err := bs.Get(key)
if err != ErrNoSuchKey {
t.Error("Expected no such key %v, found it anyway. (buf=%v, err=%v)", key, buf, err)
t.Errorf("Expected no such key %v, found it anyway. (buf=%v, err=%v)", key, buf, err)
return
}
}
@ -77,7 +77,7 @@ func TestReadInvalidKeyLength(t *testing.T) {
_, err = bs.Get(key)
if err != ErrBadKey {
t.Error("Expected invalid key for %v, got %v", key, err)
t.Errorf("Expected invalid key for %v, got %v", key, err)
return
}
}