Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit d0aa858

Browse files
committed
TooltipTestHarness wait for concurrent jobs on drop
1 parent b4ff380 commit d0aa858

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/actions/hover.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,6 +1289,10 @@ pub mod test {
12891289

12901290
impl Drop for TooltipTestHarness {
12911291
fn drop(&mut self) {
1292+
if let Ok(mut jobs) = self.ctx.jobs.lock() {
1293+
jobs.wait_for_all();
1294+
}
1295+
12921296
if fs::metadata(&self.working_dir).is_ok() {
12931297
fs::remove_dir_all(&self.working_dir).expect("failed to tidy up");
12941298
}

0 commit comments

Comments
 (0)