2072c5
From b68fa363c5981441c20fbc78b6dc00437bd698a7 Mon Sep 17 00:00:00 2001
2072c5
From: Mohit Agrawal <moagrawa@redhat.com>
2072c5
Date: Mon, 22 Jun 2020 11:35:29 +0530
2072c5
Subject: [PATCH 390/392] tests: Avoid ssl-authz.t failure
2072c5
2072c5
Problem: ssl-authz.t is failing at the time of checking memory
2072c5
         consumption if brick is consuming more than 5M
2072c5
2072c5
Solution: Update the check to avoid a failure.
2072c5
2072c5
> Change-Id: Iffb031f0695a7da83d5a2f6bac8863dad225317e
2072c5
> Fixes: bz#1811631
2072c5
> Signed-off-by: Mohit Agrawal <moagrawal@redhat.com>
2072c5
> Reviewd on upstream link https://review.gluster.org/#/c/glusterfs/+/24221/)
2072c5
> (Cherry pick from commit fb20713b380e1df8d7f9e9df96563be2f9144fd6)
2072c5
2072c5
BUG: 1848894
2072c5
Change-Id: I4fc5d2e2597abfafc1e26d908c8c4184ab82afd5
2072c5
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
2072c5
Reviewed-on: https://code.engineering.redhat.com/gerrit/203844
2072c5
Tested-by: RHGS Build Bot <nigelb@redhat.com>
2072c5
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
2072c5
---
2072c5
 tests/features/ssl-authz.t | 6 ++++--
2072c5
 1 file changed, 4 insertions(+), 2 deletions(-)
2072c5
2072c5
diff --git a/tests/features/ssl-authz.t b/tests/features/ssl-authz.t
2072c5
index 132b598..ab05c49 100755
2072c5
--- a/tests/features/ssl-authz.t
2072c5
+++ b/tests/features/ssl-authz.t
2072c5
@@ -67,13 +67,15 @@ echo "Memory consumption for glusterfsd process"
2072c5
 for i in $(seq 1 100); do
2072c5
         gluster v heal $V0 info >/dev/null
2072c5
 done
2072c5
+#Wait to cleanup memory
2072c5
+sleep 10
2072c5
 
2072c5
 end=`pmap -x $glusterfsd_pid | grep total | awk -F " " '{print $4}'`
2072c5
 diff=$((end-start))
2072c5
 
2072c5
-# If memory consumption is more than 5M some leak in SSL code path
2072c5
+# If memory consumption is more than 15M some leak in SSL code path
2072c5
 
2072c5
-TEST [ $diff -lt 5000 ]
2072c5
+TEST [ $diff -lt 15000 ]
2072c5
 
2072c5
 
2072c5
 # Set ssl-allow to a wildcard that includes our identity.
2072c5
-- 
2072c5
1.8.3.1
2072c5