summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSri Vignesh <sselvan@redhat.com>2020-05-26 12:17:14 +0530
committerSri Vignesh <sselvan@redhat.com>2020-05-27 08:03:54 +0000
commit99778b09839f5d8b149a27e8337cf1fb953abf3e (patch)
tree98b85c2a8b5caeabf8d60f0f628c7d7ece5706e9 /tests
parentad0096424edb9197be8778d453752b63a2664c57 (diff)
[TestFix] Fix test case to skip in case db cleanup fails
Tc 'test_heketi_server_operations_cleanup_on_idle_setup' raise Assertion exception in case stale entries are present in heketi db. Fix this statement to skip test case instead of raising exception Change-Id: Ia02960e1139aa9051bc7c83e230feb8bdde66d01 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/heketi/test_heketi_cluster_operations.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functional/heketi/test_heketi_cluster_operations.py b/tests/functional/heketi/test_heketi_cluster_operations.py
index d5c6801..6823996 100644
--- a/tests/functional/heketi/test_heketi_cluster_operations.py
+++ b/tests/functional/heketi/test_heketi_cluster_operations.py
@@ -224,8 +224,8 @@ class TestClusterOperationsTestCases(baseclass.BaseClass):
h_node, h_url)
if not initial_ops:
break
- if waiter_add.expired:
- self.assertFalse(initial_ops, err_msg.format(initial_ops))
+ if waiter_add.expired and initial_ops:
+ self.skipTest(err_msg.format(initial_ops))
# Run cleanup
cleanup = heketi_ops.heketi_server_operation_cleanup(h_node, h_url)