close io.Reader in tests

This commit is contained in:
Acconut 2015-02-28 16:12:33 +01:00
parent 9cd3b0e300
commit 5772ec458f
1 changed files with 2 additions and 0 deletions

View File

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