From 48aa08f64541be8f45c50780ba6fac411364c4c8 Mon Sep 17 00:00:00 2001 From: zmstone Date: Tue, 9 Sep 2025 07:48:11 +0200 Subject: [PATCH 1/2] build: fix rebar.config --- .github/workflows/erlang.yml | 4 +++- Makefile | 8 +++++++- rebar.config | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/erlang.yml b/.github/workflows/erlang.yml index cf9d4a5..c03da80 100644 --- a/.github/workflows/erlang.yml +++ b/.github/workflows/erlang.yml @@ -37,8 +37,10 @@ jobs: run: ./check-style.sh - name: setup tinyproxy run: sudo ./test/scripts/setup_tinyproxy.sh + - name: Check Format + run: make fmt-check - name: Compile - run: rebar3 compile + run: make compile - name: Run tests run: make eunit - name: Run dialyzer diff --git a/Makefile b/Makefile index 0140218..c5913f3 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: deps test +.PHONY: compile xref clean ct cover edoc dialyzer eunit fmt fmt-check REBAR=rebar3 @@ -28,3 +28,9 @@ dialyzer: eunit: @$(REBAR) eunit -v -c @$(REBAR) cover + +fmt: + @$(REBAR) fmt -w + +fmt-check: + @$(REBAR) fmt -c diff --git a/rebar.config b/rebar.config index 64b7eb9..df329c6 100644 --- a/rebar.config +++ b/rebar.config @@ -33,5 +33,5 @@ {cover_opts, [verbose]}. {cover_export_enabled, true}. -{plugins, [rebar3_proper, erlfmt]}. +{project_plugins, [erlfmt]}. {dialyzer, [{plt_extra_apps, [ssl, public_key]}]}. From 34734ef65a12f4a7883c29e0c5a539aa584314d6 Mon Sep 17 00:00:00 2001 From: zmstone Date: Tue, 9 Sep 2025 07:57:21 +0200 Subject: [PATCH 2/2] test: unlink before kill --- test/ehttpc_server.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/test/ehttpc_server.erl b/test/ehttpc_server.erl index 437704e..f46b56e 100644 --- a/test/ehttpc_server.erl +++ b/test/ehttpc_server.erl @@ -49,6 +49,7 @@ stop(undefined) -> stop(Name) when is_atom(Name) -> stop(whereis(Name)); stop(Pid) -> Mref = monitor(process, Pid), + unlink(Pid), Pid ! stop, receive {'DOWN', Mref, _, _, _} ->