fix variables that werent being called
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
parent
9527d789e7
commit
b9fcb41e6d
9 changed files with 19 additions and 22 deletions
|
@ -112,8 +112,7 @@ func TestBufioWriterPoolPutAndGet(t *testing.T) {
|
|||
buf.Reset()
|
||||
BufioWriter32KPool.Put(writer)
|
||||
// Try to write something
|
||||
written, err = writer.Write([]byte("barfoo"))
|
||||
if err != nil {
|
||||
if _, err = writer.Write([]byte("barfoo")); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
// If we now try to flush it, it should panic (the writer is nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue