diff options
author | “Milind” <mwaykole@redhat.com> | 2020-09-15 11:14:28 +0530 |
---|---|---|
committer | Milind Waykole <mwaykole@redhat.com> | 2020-09-15 06:30:10 +0000 |
commit | e311666447b1cff7be511626a3f76c177c61f0bb (patch) | |
tree | 024dc9a36abb132a4ee56f12ba1dcd02364fe5b0 /tests | |
parent | 09306cd0736f44fedfbc64694ce3861a0ccd0a11 (diff) |
[TestFix] Adding sleep so that the brick will get port
Problem :ValueError: invalid literal for int()
with base 10: 'N/A'
Solution : Wait for 5 sec so that brick will get the
port
Change-Id: Idf518392ba5584d09e81e76fca6e29037ac43e90
Signed-off-by: “Milind” <mwaykole@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/glusterd/test_brick_port_after_stop_glusterd_modify_volume.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/functional/glusterd/test_brick_port_after_stop_glusterd_modify_volume.py b/tests/functional/glusterd/test_brick_port_after_stop_glusterd_modify_volume.py index 7d56abd83..865230d1a 100644 --- a/tests/functional/glusterd/test_brick_port_after_stop_glusterd_modify_volume.py +++ b/tests/functional/glusterd/test_brick_port_after_stop_glusterd_modify_volume.py @@ -13,6 +13,7 @@ # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +from time import sleep from glusto.core import Glusto as g from glustolibs.gluster.gluster_base_class import GlusterBaseClass, runs_on @@ -158,6 +159,8 @@ class TestBrickPortAfterModifyVolume(GlusterBaseClass): self.assertTrue(ret, "glusterd is not connected %s with peer %s" % (self.servers[0], self.servers[1])) + # Waiting for 5 sec so that the brick will get port + sleep(5) vol_status = get_volume_status(self.mnode, self.volname) self.assertIsNotNone(vol_status, "Failed to get volume " "status for %s" % self.volname) |