Skip to content

Commit

Permalink
Do not throw errors in Fmt test
Browse files Browse the repository at this point in the history
  • Loading branch information
jchyb committed Jan 31, 2022
1 parent aa35015 commit 4a6f227
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class FmtTests extends munit.FunSuite {

test("with --check") {
simpleInputs.fromRoot { root =>
val out = os.proc(TestUtil.cli, "fmt", "--check").call(cwd = root).out.text()
val out = os.proc(TestUtil.cli, "fmt", "--check").call(cwd = root, check = false).out.text()
val updatedContent = noCrLf(os.read(root / "Foo.scala"))
expect(updatedContent == noCrLf(simpleInputsUnformattedContent))
expect(noCrLf(out) == "error: --test failed\n")
Expand Down

0 comments on commit 4a6f227

Please sign in to comment.