Improved equality check in SlaveTest.StateEndpoint.
Improved equality check in SlaveTest.StateEndpoint.

This test was checking two floating point values for equality by only
examining their integer part. Since one of the values went through
a number of conversions, even its integer part could have changed for
certain starting values.

This patch introduces an epsilon into the comparison to account for
possible changes in the integer part.

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

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