mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 07:12:27 +00:00
Verify that a symlink can be removed
This commit is contained in:
parent
2a886576a6
commit
12e83374e9
@ -99,6 +99,13 @@ func TestSymlinks(t *testing.T) {
|
|||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A link we will remove later
|
||||||
|
|
||||||
|
err = symlinks.Create("s1/removeLink", "does/not/exist", 0)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
// Verify that the files and symlinks sync to the other side
|
// Verify that the files and symlinks sync to the other side
|
||||||
|
|
||||||
log.Println("Syncing...")
|
log.Println("Syncing...")
|
||||||
@ -229,6 +236,13 @@ func TestSymlinks(t *testing.T) {
|
|||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove a symlink
|
||||||
|
|
||||||
|
err = os.Remove("s1/removeLink")
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
// Sync these changes and recheck
|
// Sync these changes and recheck
|
||||||
|
|
||||||
log.Println("Syncing...")
|
log.Println("Syncing...")
|
||||||
|
Loading…
Reference in New Issue
Block a user