mirror of
https://github.com/golang/sys.git
synced 2026-02-08 19:56:04 +03:00
golang.org/x/sys: fix typo in test
Change-Id: I5709137db7308934e627d866da1cc8aa5abca7db Reviewed-on: https://go-review.googlesource.com/47310 Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
committed by
Francesc Campoy Flores
parent
94b76065f2
commit
6faef541c7
@@ -336,7 +336,7 @@ func testGetValue(t *testing.T, k registry.Key, test ValueTest, size int) {
|
||||
// read data with short buffer
|
||||
gotsize, gottype, err = k.GetValue(test.Name, make([]byte, size-1))
|
||||
if err == nil {
|
||||
t.Errorf("GetValue(%s, [%d]byte) should fail, but suceeded", test.Name, size-1)
|
||||
t.Errorf("GetValue(%s, [%d]byte) should fail, but succeeded", test.Name, size-1)
|
||||
return
|
||||
}
|
||||
if err != registry.ErrShortBuffer {
|
||||
|
||||
Reference in New Issue
Block a user