Verify that a symlink can be removed

This commit is contained in:
Jakob Borg 2014-12-03 09:05:01 +01:00
parent 2a886576a6
commit 12e83374e9
1 changed files with 14 additions and 0 deletions

View File

@ -99,6 +99,13 @@ func TestSymlinks(t *testing.T) {
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
log.Println("Syncing...")
@ -229,6 +236,13 @@ func TestSymlinks(t *testing.T) {
log.Fatal(err)
}
// Remove a symlink
err = os.Remove("s1/removeLink")
if err != nil {
log.Fatal(err)
}
// Sync these changes and recheck
log.Println("Syncing...")