LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 0268-inets-Work-around-warning-in-test.patch of Package erlang (Project home:Ledest:erlang:20)

From b1567acdbe2c0189e39eb5f0cb696773dd7d1961 Mon Sep 17 00:00:00 2001
From: Luca Favatella <luca.favatella@erlang-solutions.com>
Date: Fri, 6 Apr 2018 10:24:29 +0100
Subject: [PATCH 8/9] inets: Work around warning in test

... addressing PR comment
https://github.com/erlang/otp/pull/1752#pullrequestreview-107945563
---
 lib/inets/test/httpc_SUITE.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/inets/test/httpc_SUITE.erl b/lib/inets/test/httpc_SUITE.erl
index 287db81bad..1116fdb1b6 100644
--- a/lib/inets/test/httpc_SUITE.erl
+++ b/lib/inets/test/httpc_SUITE.erl
@@ -269,7 +269,7 @@ end_per_testcase(Case, Config)
                        {failed, _} -> true;
                        {skipped, _} -> false
                    end,
-    if ShallCleanup ->
+    if ShallCleanup =:= true ->
             httpc:request(url(group_name(Config), "/just_close.html", Config)),
             ok;
        true ->
-- 
2.16.3