forked from External/grumble
Merge PR #29: Fix failing tests on Go 1.10
This commit is contained in:
parent
cb1d3db727
commit
41f8b391e4
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue