Archived
Verify that a symlink can be removed
This commit is contained in:
1 parent
2a886576a6
commit
12e83374e9
1 file changed
+14
@@ -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...")
|
||||
|
||||
Reference in new issue
Block a user