Skip to content

Commit 363edfa

Browse files
committed
Remove race in tests
1 parent 0fa8c24 commit 363edfa

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

test/ex_doc/formatter/html_test.exs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ defmodule ExDoc.Formatter.HTMLTest do
8787
generate_docs(doc_config(context, main: "Randomerror"))
8888
end)
8989

90-
assert output == "warning: index.html redirects to Randomerror.html, which does not exist\n"
90+
assert output =~ "warning: index.html redirects to Randomerror.html, which does not exist\n"
9191
assert File.regular?(tmp_dir <> "/html/index.html")
9292
assert File.regular?(tmp_dir <> "/html/RandomError.html")
9393
end
@@ -104,17 +104,6 @@ defmodule ExDoc.Formatter.HTMLTest do
104104
assert output =~ ~r"Warnings.bar/0.*\n test/fixtures/warnings.ex:8: t:Warnings.t/0"
105105
end
106106

107-
test "warns on undefined functions in file", context do
108-
output =
109-
capture_io(:stderr, fn ->
110-
generate_docs(
111-
doc_config(context, skip_undefined_reference_warnings_on: ["test/fixtures/warnings.ex"])
112-
)
113-
end)
114-
115-
assert output == ""
116-
end
117-
118107
test "generates headers for index.html and module pages", %{tmp_dir: tmp_dir} = context do
119108
generate_docs(doc_config(context, main: "RandomError"))
120109
content_index = File.read!(tmp_dir <> "/html/index.html")

0 commit comments

Comments
 (0)