Browse Source

lib/model: Disable symlink attack test on Windows

Jakob Borg 8 years ago
parent
commit
a3c17f8f81
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lib/model/requests_test.go

+ 4 - 0
lib/model/requests_test.go

@@ -206,6 +206,10 @@ func TestRequestCreateTmpSymlink(t *testing.T) {
 }
 
 func TestRequestVersioningSymlinkAttack(t *testing.T) {
+	if runtime.GOOS == "windows" {
+		t.Skip("no symlink support on Windows")
+	}
+
 	// Sets up a folder with trashcan versioning and tries to use a
 	// deleted symlink to escape