close io.Reader in tests
This commit is contained in:
parent
9cd3b0e300
commit
5772ec458f
|
@ -1,6 +1,7 @@
|
||||||
package filestore
|
package filestore
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
@ -79,6 +80,7 @@ func TestFilestore(t *testing.T) {
|
||||||
if string(content) != "hello world" {
|
if string(content) != "hello world" {
|
||||||
t.Errorf("expected content to be 'hello world'")
|
t.Errorf("expected content to be 'hello world'")
|
||||||
}
|
}
|
||||||
|
reader.(io.Closer).Close()
|
||||||
|
|
||||||
// Terminate upload
|
// Terminate upload
|
||||||
if err := store.Terminate(id); err != nil {
|
if err := store.Terminate(id); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue