diff --git a/cmd/review-bot/validatedocmap_test.go b/cmd/review-bot/validatedocmap_test.go index 1377b47..62a204e 100644 --- a/cmd/review-bot/validatedocmap_test.go +++ b/cmd/review-bot/validatedocmap_test.go @@ -687,6 +687,9 @@ func TestValidateDocmapPath_InRepoSymlinkAllowed(t *testing.T) { t.Fatalf("expected in-repo symlink to be accepted, got error: %v", err) } // The returned resolved path must be the real file (not the symlink entry). + // validateDocmapPath calls filepath.EvalSymlinks internally, so the returned + // path is always the fully-resolved real path — it can never equal the + // symlink entry itself. if resolved == symlinkPath { t.Errorf("expected resolved path to differ from symlink path") }