fix unit test

This commit is contained in:
Jorge Aparicio 2019-04-22 21:00:08 +02:00
parent ef399ab44f
commit 1af760e971

View File

@ -419,7 +419,9 @@ mod tests {
#[cfg(not(feature = "min-const-fn"))]
let POOL: Pool<[u8; 128]> = Pool::new();
unsafe { POOL.grow(&mut MEMORY) }
unsafe {
POOL.grow(&mut MEMORY);
}
for _ in 0..7 {
assert!(POOL.alloc().is_some());