mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-10-02 14:54:30 +00:00
fix unit test
This commit is contained in:
parent
ef399ab44f
commit
1af760e971
@ -419,7 +419,9 @@ mod tests {
|
|||||||
#[cfg(not(feature = "min-const-fn"))]
|
#[cfg(not(feature = "min-const-fn"))]
|
||||||
let POOL: Pool<[u8; 128]> = Pool::new();
|
let POOL: Pool<[u8; 128]> = Pool::new();
|
||||||
|
|
||||||
unsafe { POOL.grow(&mut MEMORY) }
|
unsafe {
|
||||||
|
POOL.grow(&mut MEMORY);
|
||||||
|
}
|
||||||
|
|
||||||
for _ in 0..7 {
|
for _ in 0..7 {
|
||||||
assert!(POOL.alloc().is_some());
|
assert!(POOL.alloc().is_some());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user