diff options
| author | Jeff Darcy <jdarcy@fb.com> | 2017-08-31 12:48:09 -0700 |
|---|---|---|
| committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-08-31 20:13:38 +0000 |
| commit | 3596949c62804bd6ad372148107adcbb9c23fc57 (patch) | |
| tree | eee7adfec0ad902d90bbbb9b2eea413d9e1aed2e | |
| parent | ed23e379ee397b3fed479c15b7551d2dbba9a05f (diff) | |
tests: fix timing issues from the previous merge
Change-Id: Ic77287c1b96ae426b927b4bf6f2826d6f3a3b17d
Signed-off-by: Jeff Darcy <jdarcy@fb.com>
Reviewed-on: https://review.gluster.org/18175
Reviewed-by: Jeff Darcy <jeff@pl.atyp.us>
Tested-by: Jeff Darcy <jeff@pl.atyp.us>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.org>
| -rw-r--r-- | tests/basic/afr/shd-autofix-nogfid.t | 7 | ||||
| -rwxr-xr-x | tests/basic/mount-nfs-auth.t | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/tests/basic/afr/shd-autofix-nogfid.t b/tests/basic/afr/shd-autofix-nogfid.t index 7c9026dce62..8bc2c965640 100644 --- a/tests/basic/afr/shd-autofix-nogfid.t +++ b/tests/basic/afr/shd-autofix-nogfid.t @@ -37,8 +37,13 @@ MD5=$(md5sum $M0/foo/testfile | cut -d\ -f1) mkdir $B0/${V0}1/foo +TEST $CLI volume stop $V0 +# Give GlusterD a moment to get its $#@! together. If we issue these commands +# back to back (or use "start force") then the start doesn't work properly and +# get_pending_heal_count fails. +sleep 5 # Kick off the SHD and wait 30 seconds for healing to take place -TEST gluster vol start $V0 force +TEST $CLI volume start $V0 EXPECT_WITHIN 30 "0" get_pending_heal_count $V0 # Verify the file was healed back to brick 1 diff --git a/tests/basic/mount-nfs-auth.t b/tests/basic/mount-nfs-auth.t index 7f990c9aeb2..00710efd03f 100755 --- a/tests/basic/mount-nfs-auth.t +++ b/tests/basic/mount-nfs-auth.t @@ -269,6 +269,9 @@ EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" umount_nfs $N0 TEST export_allow_this_host_l1 TEST netgroup_allow_this_host +# Give the auth stuff a moment to catch up. +sleep 5 + EXPECT_WITHIN $MY_MOUNT_TIMEOUT "Y" check_mount_success $V0L1 EXPECT "Y" small_write |
