]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/test_weighted_shuffle: enlarge epsilon
authorKefu Chai <kchai@redhat.com>
Tue, 26 Mar 2019 05:30:53 +0000 (13:30 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 26 Mar 2019 05:30:55 +0000 (13:30 +0800)
commit37b832ca965c7bf72b17b19d28c44ca269422c16
tree8d7b23537579ff646507986e3ba963e8ca9f1727
parent049ce9f40b8e6ec1dfcc77266d5d7035e6154140
test/test_weighted_shuffle: enlarge epsilon

be more permissive to address the following failure:

test_weighted_shuffle.cc:36: Failure
The difference between float(w) / total_weight and float(f.front()) /
samples is 0.010334432125091553, which exceeds epsilon, where
float(w) / total_weight evaluates to 0.53763443231582642,
float(f.front()) / samples evaluates to 0.52730000019073486, and
epsilon evaluates to 0.0099999997764825821

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/test_weighted_shuffle.cc