File 7953-inets-Fix-error-in-httpc_SUITE.patch of Package erlang

From dd940d7f8c43cb44dd559c26c1dcedc3543d2cde Mon Sep 17 00:00:00 2001
From: Konrad Pietrzak <konrad@erlang.org>
Date: Thu, 26 Sep 2024 13:56:32 +0200
Subject: [PATCH] inets: Fix error in httpc_SUITE

---
 lib/inets/test/httpc_SUITE.erl | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/lib/inets/test/httpc_SUITE.erl b/lib/inets/test/httpc_SUITE.erl
index bd62de9062..d7ab58970a 100644
--- a/lib/inets/test/httpc_SUITE.erl
+++ b/lib/inets/test/httpc_SUITE.erl
@@ -342,9 +342,6 @@ init_per_testcase(Case, Config) when Case == post;
 				     Case == post_stream ->
     ct:timetrap({seconds, 30}),
     Config;
-init_per_testcase(async, Config) ->
-    {ok,Pid} = inets:start(httpc, [{profile, async}], stand_alone),
-    [{httpc_pid, Pid} | Config];
 init_per_testcase(_Case, Config) ->
     Config.
 
@@ -370,9 +367,6 @@ end_per_testcase(Case, Config)
             ct:log("Not cleaning up because test case status was ~p", [Status]),
             ok
     end;
-end_per_testcase(async, Config) ->
-    Pid = proplists:get_value(httpc_pid, Config),
-    inets:stop(httpc, Pid);
 end_per_testcase(_Case, _Config) ->
     ok.
 
@@ -564,7 +558,6 @@ async() ->
     [{doc, "Test an asynchrony http request."}].
 async(Config) when is_list(Config) ->
     Request  = {url(group_name(Config), "/dummy.html", Config), []},
-    HttpcPid = proplists:get_value(httpc_pid, Config),
     {ok, RequestId} =
         httpc:request(get, Request, [], [{sync, false}]),
     Body =
@@ -589,18 +582,6 @@ async(Config) when is_list(Config) ->
         end,
     inets_test_lib:check_body(binary_to_list(Body2)),
 
-    %% Check receiver alias() option for async request with stand_alone httpc
-    {ok, RequestId3} =
-        httpc:request(get, Request, [?SSL_NO_VERIFY], [{sync, false},
-                                         {receiver, alias()}], HttpcPid),
-    Body3 =
-        receive
-            {http, {RequestId3, {{_, 200, _}, _, BinBody3}}} ->
-                BinBody3;
-            {http, Msg3} ->
-                ct:fail(Msg3)
-        end,
-    inets_test_lib:check_body(binary_to_list(Body3)),
     {ok, NewRequestId} =
 	httpc:request(get, Request, [], [{sync, false}]),
     ok = httpc:cancel_request(NewRequestId).
-- 
2.43.0

openSUSE Build Service is sponsored by