Ensured allocations are processed before querying metrics in a test.
Ensured allocations are processed before querying metrics in a test.

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

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