add drop with timeout (#1934)
This commit is contained in:
parent
8710b4a3f4
commit
e01ba60dd9
@ -206,5 +206,7 @@ mod tests {
|
|||||||
Arc::new(Miner::with_spec(&spec)),
|
Arc::new(Miner::with_spec(&spec)),
|
||||||
);
|
);
|
||||||
assert!(service.is_ok());
|
assert!(service.is_ok());
|
||||||
|
drop(service.unwrap());
|
||||||
|
::std::thread::park_timeout(::std::time::Duration::from_millis(100));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user