mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-23 04:27:03 +00:00
storage test: fix failures on windows (#457)
* storage test: close source reader * fstore: properly close directory handle
This commit is contained in:
@@ -326,5 +326,9 @@ func readDirNames(elem ...string) ([]string, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer func() {
|
||||
_ = f.Close()
|
||||
}()
|
||||
|
||||
return f.Readdirnames(0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user