Skip to content

Commit bb3d2a4

Browse files
Juraj Hlistalastres
Juraj Hlista
authored andcommitted
Remove warning from tests
1 parent 1efb030 commit bb3d2a4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

test/lhttpc_tests.erl

+2-2
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ partial_upload_identity_iolist() ->
483483
?assertEqual("This is chunky stuff!",
484484
lhttpc_lib:header_value("x-test-orig-body", headers(Response1))),
485485
% Make sure it works with no body part in the original request as well
486-
{ok, UploadState2} = lhttpc:request_client(Client, URL, post, Hdrs, [], 1000, Options),
486+
{ok, _UploadState2} = lhttpc:request_client(Client, URL, post, Hdrs, [], 1000, Options),
487487
{ok, Response2} = upload_parts(Client, Body ++ [http_eob]),
488488
?assertEqual({200, "OK"}, status(Response2)),
489489
?assertEqual(list_to_binary(webserver_utils:default_string()), body(Response2)),
@@ -790,7 +790,7 @@ read_partial_body(Client, Size, Acc) ->
790790
?assert(Size >= iolist_size(Bin))
791791
end,
792792
read_partial_body(Client, Size, <<Acc/binary,Bin/binary>>);
793-
{http_eob, Trailers} ->
793+
{http_eob, _Trailers} ->
794794
Acc;
795795
{body_part_error, Reason} ->
796796
{error, Reason, Acc}

test/simple_load.erl

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
-module(simple_load).
2-
-behaviour(gen_httpd).
32

43
-export([start_client/2, start_client/3]).
54
-export([client/2]).

0 commit comments

Comments
 (0)