]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - remote/ainsl/ainsl_test.go
remote: guard against symlinks in earlier path components
[safcm/safcm.git] / remote / ainsl / ainsl_test.go
index 3d391f0ce49ceaf5e68eb1052e0ddae1bc3671fa..ed52bb0f758f4981948e4ff9fbf5b6918f1bee8c 100644 (file)
@@ -54,10 +54,10 @@ func TestHandle(t *testing.T) {
        }
        _, uid, _, gid := ft.CurrentUserAndGroup()
 
-       symlinkExists := "open file: too many levels of symbolic links"
+       symlinkExists := "\"file\": too many levels of symbolic links"
        if runtime.GOOS == "freebsd" {
                // EMLINK instead of ELOOP
-               symlinkExists = "open file: too many links"
+               symlinkExists = "\"file\": too many links"
        }
 
        tests := []struct {
@@ -293,7 +293,7 @@ func TestHandle(t *testing.T) {
                                },
                        },
                        nil,
-                       fmt.Errorf("\"file\" is not a regular file but p---------"),
+                       fmt.Errorf("\"file\": not a regular file but p---------"),
                },
        }