Removed the while loops in ZooKeeperTest.
Removed the while loops in ZooKeeperTest.

Review: https://reviews.apache.org/r/17806

asamerh4/mesos,Gilbert88/mesos,asamerh4/mesos,jpeach/mesos,reneploetz/mesos,zmalik/mesos,Gilbert88/mesos,yuquanshan/customizedMesos,Aman-Jain-14/customizedMesos,yuquanshan/customizedMesos,dforsyth/mesos,asamerh4/mesos,abudnik/mesos,jpeach/mesos,abudnik/mesos,neilconway/mesos,chhsia0/mesos,verizonlabs/mesos,reneploetz/mesos,Gilbert88/mesos,Gilbert88/mesos,andschwa/mesos,reneploetz/mesos,kaysoky/mesos,neilconway/mesos,craimbert/mesos,chhsia0/mesos,Aman-Jain-14/customizedMesos,neilconway/mesos,asamerh4/mesos,dforsyth/mesos,yuquanshan/customizedMesos,gsantovena/mesos,jpeach/mesos,chhsia0/mesos,yuquanshan/customizedMesos,dforsyth/mesos,abudnik/mesos,abudnik/mesos,Aman-Jain-14/customizedMesos,Aman-Jain-14/customizedMesos,chhsia0/mesos,Aman-Jain-14/customizedMesos,dforsyth/mesos,gsantovena/mesos,craimbert/mesos,gsantovena/mesos,Gilbert88/mesos,andschwa/mesos,zmalik/mesos,Aman-Jain-14/customizedMesos,yuquanshan/customizedMesos,zmalik/mesos,andschwa/mesos,chhsia0/mesos,asamerh4/mesos,abudnik/mesos,craimbert/mesos,neilconway/mesos,andschwa/mesos,yuquanshan/customizedMesos,neilconway/mesos,zmalik/mesos,reneploetz/mesos,abudnik/mesos,kaysoky/mesos,dforsyth/mesos,zmalik/mesos,Gilbert88/mesos,kaysoky/mesos,kaysoky/mesos,craimbert/mesos,verizonlabs/mesos,abudnik/mesos,kaysoky/mesos,verizonlabs/mesos,andschwa/mesos,andschwa/mesos,craimbert/mesos,verizonlabs/mesos,verizonlabs/mesos,neilconway/mesos,kaysoky/mesos,chhsia0/mesos,verizonlabs/mesos,Aman-Jain-14/customizedMesos,reneploetz/mesos,zmalik/mesos,yuquanshan/customizedMesos,gsantovena/mesos,gsantovena/mesos,andschwa/mesos,gsantovena/mesos,dforsyth/mesos,dforsyth/mesos,craimbert/mesos,neilconway/mesos,reneploetz/mesos,chhsia0/mesos,verizonlabs/mesos,reneploetz/mesos,jpeach/mesos,gsantovena/mesos,asamerh4/mesos,craimbert/mesos,Gilbert88/mesos,kaysoky/mesos,zmalik/mesos,jpeach/mesos,asamerh4/mesos,jpeach/mesos,jpeach/mesos