@@ -7,6 +7,7 @@
|
||||
package versioner
|
||||
|
||||
import (
|
||||
"github.com/syncthing/syncthing/lib/config"
|
||||
"io/ioutil"
|
||||
"math"
|
||||
"path/filepath"
|
||||
@@ -59,9 +60,18 @@ func TestSimpleVersioningVersionCount(t *testing.T) {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
fs := fs.NewFilesystem(fs.FilesystemTypeBasic, dir)
|
||||
cfg := config.FolderConfiguration{
|
||||
FilesystemType: fs.FilesystemTypeBasic,
|
||||
Path: dir,
|
||||
Versioning: config.VersioningConfiguration{
|
||||
Params: map[string]string{
|
||||
"keep": "2",
|
||||
},
|
||||
},
|
||||
}
|
||||
fs := cfg.Filesystem()
|
||||
|
||||
v := newSimple(fs, map[string]string{"keep": "2"})
|
||||
v := newSimple(cfg)
|
||||
|
||||
path := "test"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user