mirror of
https://github.com/qdm12/gluetun.git
synced 2026-06-12 23:32:15 +02:00
Maint: do not mock os functions
- Use filepaths with /tmp for tests instead - Only mock functions where filepath can't be specified such as user.Lookup
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package storage
|
||||
|
||||
import "github.com/qdm12/gluetun/internal/models"
|
||||
|
||||
func (s *storage) FlushToFile(allServers models.AllServers) error {
|
||||
return flushToFile(s.filepath, allServers)
|
||||
}
|
||||
Reference in New Issue
Block a user