Description of problem: Since commit 600ba94183333c4af9b4a09616690994fd528478, shd starts healing as soon is it is toggled from disabled to enabled. This was causing the following line in the .t to fail on a 'fast' machine (always on my laptop and sometimes on the jenkins slaves). EXPECT_NOT "^0$" get_pending_heal_count $V0 because by the time shd was disabled, the heal was already completed.
REVIEW: https://review.gluster.org/23352 (tests: fix spurious failure of bug-1402841.t-mt-dir-scan-race.t) posted (#1) for review on master by Ravishankar N
Forgot to add the links to failures in the bug description: https://build.gluster.org/job/centos7-regression/7743/ https://build.gluster.org/job/centos7-regression/7747/
REVIEW: https://review.gluster.org/23352 (tests: fix spurious failure of bug-1402841.t-mt-dir-scan-race.t) merged (#3) on master by Raghavendra Talur