mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 11:58:28 +00:00
parent
48da6f0f22
commit
42de53c6c9
@ -1665,10 +1665,9 @@ func TestRWScanRecovery(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestGlobalDirectoryTree(t *testing.T) {
|
func TestGlobalDirectoryTree(t *testing.T) {
|
||||||
db := db.NewLowlevel(backend.OpenMemory())
|
w, fcfg := tmpDefaultWrapper()
|
||||||
m := newModel(defaultCfgWrapper, myID, "syncthing", "dev", db, nil)
|
m := setupModel(w)
|
||||||
m.ServeBackground()
|
defer cleanupModelAndRemoveDir(m, fcfg.Filesystem().URI())
|
||||||
defer cleanupModel(m)
|
|
||||||
|
|
||||||
b := func(isfile bool, path ...string) protocol.FileInfo {
|
b := func(isfile bool, path ...string) protocol.FileInfo {
|
||||||
typ := protocol.FileInfoTypeDirectory
|
typ := protocol.FileInfoTypeDirectory
|
||||||
@ -1916,10 +1915,9 @@ func TestGlobalDirectoryTree(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestGlobalDirectorySelfFixing(t *testing.T) {
|
func TestGlobalDirectorySelfFixing(t *testing.T) {
|
||||||
db := db.NewLowlevel(backend.OpenMemory())
|
w, fcfg := tmpDefaultWrapper()
|
||||||
m := newModel(defaultCfgWrapper, myID, "syncthing", "dev", db, nil)
|
m := setupModel(w)
|
||||||
m.ServeBackground()
|
defer cleanupModelAndRemoveDir(m, fcfg.Filesystem().URI())
|
||||||
defer cleanupModel(m)
|
|
||||||
|
|
||||||
b := func(isfile bool, path ...string) protocol.FileInfo {
|
b := func(isfile bool, path ...string) protocol.FileInfo {
|
||||||
typ := protocol.FileInfoTypeDirectory
|
typ := protocol.FileInfoTypeDirectory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user