fix variables that werent being called

Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
Jessica Frazelle 2016-03-16 19:43:26 -07:00
parent 9527d789e7
commit b9fcb41e6d
9 changed files with 19 additions and 22 deletions

View file

@ -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)