layout: fix test
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing

This commit is contained in:
Alex 2023-11-14 15:45:01 +01:00
parent 90e1619b1e
commit 7ef2c23120
Signed by: lx
GPG key ID: 0E496D15096376BE

View file

@ -35,7 +35,7 @@ fn check_against_naive(cl: &LayoutVersion) -> Result<bool, Error> {
}
for uuid in cl.nongateway_nodes() {
let z = cl.get_node_zone(&uuid)?;
let c = cl.get_node_capacity(&uuid)?;
let c = cl.get_node_capacity(&uuid).unwrap();
zone_token.insert(
z.to_string(),
zone_token[z] + min(NB_PARTITIONS, (c / over_size) as usize),