From 5772ec458f28e25b7744d110b3a2c6aa0c422aa7 Mon Sep 17 00:00:00 2001 From: Acconut Date: Sat, 28 Feb 2015 16:12:33 +0100 Subject: [PATCH] close io.Reader in tests --- filestore/filestore_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/filestore/filestore_test.go b/filestore/filestore_test.go index 405e315..fc983a6 100644 --- a/filestore/filestore_test.go +++ b/filestore/filestore_test.go @@ -1,6 +1,7 @@ package filestore import ( + "io" "io/ioutil" "os" "strings" @@ -79,6 +80,7 @@ func TestFilestore(t *testing.T) { if string(content) != "hello world" { t.Errorf("expected content to be 'hello world'") } + reader.(io.Closer).Close() // Terminate upload if err := store.Terminate(id); err != nil {