diff options
author | Rajesh Joseph <rjoseph@redhat.com> | 2016-12-15 20:51:30 +0530 |
---|---|---|
committer | Rajesh Joseph <rjoseph@redhat.com> | 2016-12-16 06:36:46 -0800 |
commit | e9d8525a0d34130ba2a582109937b8e79eecf6ab (patch) | |
tree | 628e4ae56c6306cf1623b501b50a614ac70b1edf /tests | |
parent | dc549b330cc1337c60f3c3544986bab13d10d4e5 (diff) |
tests: Fix spurious test failure in bug-1316437.t
After sending SIGTERM to gluster process we immediately
check if process exited. We should wait for some time
before checking process state.
BUG: 1404573
Change-Id: Iaba0067f6e880a7fe38e11b9fa0fe9bd103b19e2
Signed-off-by: Rajesh Joseph <rjoseph@redhat.com>
Reviewed-on: http://review.gluster.org/16162
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Avra Sengupta <asengupt@redhat.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: N Balachandran <nbalacha@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs/snapshot/bug-1316437.t | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/bugs/snapshot/bug-1316437.t b/tests/bugs/snapshot/bug-1316437.t index 30a221e3171..300c03c97f5 100644 --- a/tests/bugs/snapshot/bug-1316437.t +++ b/tests/bugs/snapshot/bug-1316437.t @@ -20,8 +20,7 @@ EXPECT_WITHIN $PROCESS_UP_TIMEOUT 'Y' check_if_snapd_exist killall glusterd glusterfsd glusterfs -SNAPD_PID=$(ps auxww | grep snapd | grep -v grep | awk '{print $2}'); -TEST ! [ $SNAPD_PID -gt 0 ]; +EXPECT_WITHIN $PROCESS_DOWN_TIMEOUT 'N' check_if_snapd_exist glusterd |