Skip to content

Commit 7f8380a

Browse files
committed
fix another test
1 parent b1d9953 commit 7f8380a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/runtests.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,12 @@ MultiDocumenter.make(
151151
end
152152

153153
@testset "canonical URLs" begin
154-
index = read(joinpath(outpath, "inf", "stable", "index.html"), String)
155-
canonical_href = "<link href=\"https://example.org/MultiDocumenter.jl/inf/stable/\" rel=\"canonical\"/>"
156-
@test occursin(canonical_href, index)
154+
# We can't traverse symlinks on Windows, so we ignore this case
155+
if !Sys.iswindows()
156+
index = read(joinpath(outpath, "inf", "stable", "index.html"), String)
157+
canonical_href = "<link href=\"https://example.org/MultiDocumenter.jl/inf/stable/\" rel=\"canonical\"/>"
158+
@test occursin(canonical_href, index)
159+
end
157160

158161
index = read(joinpath(outpath, "inf", "v1.6.0", "index.html"), String)
159162
canonical_href = "<link href=\"https://example.org/MultiDocumenter.jl/inf/stable/\" rel=\"canonical\"/>"

0 commit comments

Comments
 (0)