Skip to content

Commit 9dfe7ce

Browse files
committed
fix: make 'test_resource_pool_acquire_locks_until_timeout_when_no_resource_available' test more explicit
1 parent 3d1e329 commit 9dfe7ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mithril-common/src/resource_pool.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ mod tests {
231231
let mut resources_items = vec![];
232232
for _ in 0..pool_size {
233233
let resource_item = pool.acquire_resource(Duration::from_millis(10)).unwrap();
234+
// The resource is stored in a list to avoid it being dropped when exiting this block scope
234235
resources_items.push(resource_item);
235236
}
236237

0 commit comments

Comments
 (0)