Skip to content
Permalink
Browse files

Merge pull request #19 from erizocosmico/fix/mods

look for files in /data/, correctly delete files from cache
  • Loading branch information...
mcuadros committed Jun 5, 2019
2 parents d0328b5 + 461085c commit 57f3972b0248eaa725023c264c1b582c29932544
Showing with 3 additions and 3 deletions.
  1. +3 −3 fixtures.go
@@ -203,7 +203,7 @@ func (f *Fixture) file(path string) (*os.File, error) {
return os.Open(fpath)
}

bytes, err := FSByte(false, path)
bytes, err := FSByte(false, "/data/"+path)
if err != nil {
return nil, err
}
@@ -354,8 +354,8 @@ func (g Fixtures) Exclude(tag string) Fixtures {

// Clean cleans all the temporal files created
func Clean() error {
for _, fname := range files {
if err := os.Remove(fname); err != nil {
for fname, f := range files {
if err := os.Remove(f); err != nil {
return err
}
delete(files, fname)

0 comments on commit 57f3972

Please sign in to comment.
You can’t perform that action at this time.