summaryrefslogtreecommitdiffstats
path: root/tests/functional/glusterd/test_volume_create_with_glusterd_restarts.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/glusterd/test_volume_create_with_glusterd_restarts.py')
-rw-r--r--tests/functional/glusterd/test_volume_create_with_glusterd_restarts.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/functional/glusterd/test_volume_create_with_glusterd_restarts.py b/tests/functional/glusterd/test_volume_create_with_glusterd_restarts.py
index 8c3d77b9d..84e01d9ea 100644
--- a/tests/functional/glusterd/test_volume_create_with_glusterd_restarts.py
+++ b/tests/functional/glusterd/test_volume_create_with_glusterd_restarts.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2017-2018 Red Hat, Inc. <http://www.redhat.com>
+# Copyright (C) 2017-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
@@ -75,6 +75,9 @@ class TestVolumeCreateWithGlusterdRestarts(GlusterBaseClass):
"done")
proc1 = g.run_async(self.servers[3], restart_cmd)
+ # After running restart in g.async adding 10 sec sleep
+ sleep(10)
+
# Creating volumes using 3 servers
ret, _, _ = volume_create(self.mnode, self.volname,
bricks_list)
@@ -101,6 +104,9 @@ class TestVolumeCreateWithGlusterdRestarts(GlusterBaseClass):
"done")
proc1 = g.run_async(self.servers[3], restart_cmd)
+ # After running restart in g.async adding 10 sec sleep
+ sleep(10)
+
# Start the volume created.
ret, _, _ = volume_start(self.mnode, self.volname)
self.assertEqual(ret, 0, "Volume start failed")