1
0
Эх сурвалжийг харах

lib/model: Disable symlink attack test on Windows

Jakob Borg 8 жил өмнө
parent
commit
a3c17f8f81

+ 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