Skip to content

Commit 020aedd

Browse files
committed
Fix: Error Sidebar PR failed test
[test_windows_full]
1 parent daa9934 commit 020aedd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scaladoc/test/dotty/tools/scaladoc/site/SidebarParserTest.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ class SidebarParserTest:
3838
| - page: my-page6/my-page6/my-page6.md
3939
""".stripMargin
4040

41-
private val sidebarNoTitle =
41+
private val sidebarErrorNoTitle =
4242
"""index: index.md
4343
|subsection:
44-
| - title: My title
4544
| page: my-page1.md
4645
| - page: my-page2.md
4746
| - page: my-page3/subsection
@@ -122,7 +121,6 @@ class SidebarParserTest:
122121
Console.withErr(new PrintStream(out)) {
123122
Sidebar.load(sidebarErrorNoPage)(using testContext)
124123
}
125-
println(out.toString())
126124
val error = out.toString().trim()
127125

128126
assert(error.contains(msgNoPage) && error.contains(schemaMessage))
@@ -132,7 +130,7 @@ class SidebarParserTest:
132130
def loadSidebarNoTitleError(): Unit =
133131
val out = new ByteArrayOutputStream()
134132
Console.withErr(new PrintStream(out)) {
135-
Sidebar.load(sidebarNoTitle)(using testContext)
133+
Sidebar.load(sidebarErrorNoTitle)(using testContext)
136134
}
137135
val error = out.toString().trim()
138136

0 commit comments

Comments
 (0)