Skip to content

Commit eca8092

Browse files
committed
Ensure assert_received still produces valid exceptions, closes #9799
1 parent 8e71e65 commit eca8092

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/ex_unit/lib/ex_unit/formatter.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ defmodule ExUnit.Formatter do
338338
{:match, pins},
339339
formatter,
340340
padding_size + 5,
341-
width - 5
341+
width
342342
)
343343

344344
[

lib/ex_unit/test/ex_unit/assertions_test.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ defmodule ExUnit.AssertionsTest do
375375

376376
"assert_received({:status, ^status, ^status})" = Macro.to_string(error.expr)
377377
"{:status, ^status, ^status}" = Macro.to_string(error.left)
378+
"\n\nAssertion failed" <> _ = Exception.message(error)
378379
end
379380
end
380381

0 commit comments

Comments
 (0)