diff --git a/test/symlink_test.go b/test/symlink_test.go index 26054b6a..8cb9e4b4 100644 --- a/test/symlink_test.go +++ b/test/symlink_test.go @@ -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...")