summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordongwenjuan <dong.wenjuan@zte.com.cn>2018-08-07 09:58:53 +0800
committerdongwenjuan <dong.wenjuan@zte.com.cn>2018-08-07 09:58:53 +0800
commit0f607cb5efd91ee497346b7f792dfa844d15595c (patch)
tree9569ed71d96412398fc4fdcd5e4122f1b65aa6ae
parent1351038a65739b8d799820de515178326ad05f7b (diff)
enlarge the time of link down
Change-Id: I063d7ba9b3eb8999cb2b08e7c6deca2644eb169e Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
-rw-r--r--doctor_tests/main.py2
-rw-r--r--doctor_tests/scenario/fault_management.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/doctor_tests/main.py b/doctor_tests/main.py
index 61facb61..79480ca1 100644
--- a/doctor_tests/main.py
+++ b/doctor_tests/main.py
@@ -67,7 +67,7 @@ class DoctorTest(object):
# injecting host failure...
# NOTE (umar) add INTERFACE_NAME logic to host injection
self.fault_management.start()
- time.sleep(10)
+ time.sleep(30)
# verify the test results
# NOTE (umar) copy remote monitor.log file when monitor=collectd
diff --git a/doctor_tests/scenario/fault_management.py b/doctor_tests/scenario/fault_management.py
index b1fe8099..f8f53e8e 100644
--- a/doctor_tests/scenario/fault_management.py
+++ b/doctor_tests/scenario/fault_management.py
@@ -32,7 +32,7 @@ dev=$(sudo ip a | awk '/ {compute_ip}\//{{print $NF}}')
sleep 1
sudo ip link set $dev down
echo "doctor set link down at" $(date "+%s.%N")
-sleep 10
+sleep 30
sudo ip link set $dev up
sleep 1
"""