Skip to content

Commit 85dbb17

Browse files
committed
test: Fix test_waitgroup_inline
issue #63 be aware smol & compio has the same behavior when droping the join handle.
1 parent 780ff8b commit 85dbb17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test-suite/src/test_waitgroup.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,14 +417,15 @@ fn test_waitgroup_inline(setup_log: ()) {
417417
runtime_block_on!(async move {
418418
let _wg = wg.clone();
419419
wg.add();
420-
async_spawn!(async move {
420+
let th = async_spawn!(async move {
421421
#[cfg(feature = "time")]
422422
{
423423
sleep(Duration::from_secs(1)).await;
424424
}
425425
unsafe { _wg.done() };
426426
});
427427
unsafe { wg.wait_async().await };
428+
async_join_result!(th);
428429
assert_eq!(wg.get_left_seqcst(), 0);
429430
});
430431
}

0 commit comments

Comments
 (0)