]> Sergey Matveev's repositories - btrtrc.git/blobdiff - storage/file_test.go
Fixes for storage tests on Windows
[btrtrc.git] / storage / file_test.go
index 604db70144c53beeb80ec9321787e4a31efca6bb..a6c69fa28dfef0ac12a6095d582c4ca58f1355da 100644 (file)
@@ -17,6 +17,7 @@ import (
 func TestShortFile(t *testing.T) {
        td := t.TempDir()
        s := NewFile(td)
+       defer s.Close()
        info := &metainfo.Info{
                Name:        "a",
                Length:      2,