Skip to content

Commit de4a7f1

Browse files
committed
Skip flakey test on CI
1 parent 3aa22b0 commit de4a7f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hugolib/page_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"time"
2424

2525
"github.com/bep/clocks"
26+
"github.com/gohugoio/hugo/htesting"
2627
"github.com/gohugoio/hugo/markup/asciidocext"
2728
"github.com/gohugoio/hugo/markup/rst"
2829
"github.com/gohugoio/hugo/tpl"
@@ -368,7 +369,7 @@ func testAllMarkdownEnginesForPages(t *testing.T,
368369
}{
369370
{"md", func() bool { return true }},
370371
{"ad", func() bool { return asciidocext.Supports() }},
371-
{"rst", func() bool { return rst.Supports() }},
372+
{"rst", func() bool { return !htesting.IsRealCI() && rst.Supports() }},
372373
}
373374

374375
for _, e := range engines {

0 commit comments

Comments
 (0)