Skip to content

Commit cdfae86

Browse files
author
Adriano Santos
committed
fix: capture exits in report test
1 parent f90aee1 commit cdfae86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/grpc/server/adapters/report_exception_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ defmodule ExceptionServer do
55

66
@impl true
77
def init(pid) do
8+
Process.flag(:trap_exit, true)
89
{:ok, pid}
910
end
1011

@@ -63,7 +64,7 @@ defmodule GRPC.Server.Adapters.ReportExceptionTest do
6364
kind: :error,
6465
reason: %CaseClauseError{term: :ok},
6566
stack: stack
66-
} == ReportException.new([{:req, :ok}], err)
67+
} == ReportException.new([{:req, :ok}], err)
6768
end
6869
end
6970

0 commit comments

Comments
 (0)