test: make erlfmt happy

This commit is contained in:
Zaiming (Stone) Shi 2023-05-19 17:46:36 +02:00
parent 264404e180
commit 7eef86363a
1 changed files with 6 additions and 1 deletions

View File

@ -435,7 +435,12 @@ t_write_failure(Config) ->
#{?snk_kind := buffer_worker_flush_ack},
2_000
),
?assertMatch({error, Reason} when Reason =:= econnrefused; Reason =:= closed, Result),
case Result of
{error, Reason} when Reason =:= econnrefused; Reason =:= closed ->
ok;
_ ->
throw({unexpected, Result})
end,
ok
end),
ok.