summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkshithijiyer <kshithij.ki@gmail.com>2020-05-20 14:35:25 +0530
committerkshithijiyer <kshithij.ki@gmail.com>2020-05-20 14:53:39 +0530
commit75de01c8fc1e8fb9fe655753e4c560d96b884944 (patch)
treeba330eeb37395c9791f8a343a3cd3d0777f5cb10
parentdd5dbb04312664836e3e2cfc7fc36867d65c6aa7 (diff)
[Testfix] Fix assertIn in test_enabling_brick_mux
assertIn statement looks for out in warning_message which fails every time as it should ideally look for warning_message in out. Change-Id: I57e0221097c861e251995e5e8456cb19964e7d17 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
-rwxr-xr-xtests/functional/multiplex/test_enabling_brick_mux.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functional/multiplex/test_enabling_brick_mux.py b/tests/functional/multiplex/test_enabling_brick_mux.py
index d83c4eb..488b733 100755
--- a/tests/functional/multiplex/test_enabling_brick_mux.py
+++ b/tests/functional/multiplex/test_enabling_brick_mux.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2019 Red Hat, Inc. <http://www.redhat.com>
+# Copyright (C) 2019-2020 Red Hat, Inc. <http://www.redhat.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -71,7 +71,7 @@ class TestBrickMultiplexing(GlusterBaseClass):
g.log.info('Checking for warning message in output...')
if "volume set: success" not in out:
- self.assertIn(out, warning_message,
+ self.assertIn(warning_message, out,
'There is no warning message in '
'output or message is incorrect.')
g.log.info('Warning message is correct.')