Skip to content

Commit 96337d6

Browse files
committed
fix(test): abandon invocation via tokio task
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
1 parent fb23238 commit 96337d6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/rust.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use core::str;
99
use core::time::Duration;
1010

1111
use std::sync::Arc;
12-
use std::thread;
1312

1413
use anyhow::Context;
1514
use bytes::Bytes;
@@ -721,7 +720,9 @@ where
721720
.await
722721
.expect("failed to accept invocation")
723722
.expect("unexpected end of stream");
724-
thread::spawn(|| inv);
723+
tokio::spawn(async move { drop(inv) })
724+
.await
725+
.expect("failed to drop abandoned `test.reset` invocation");
725726
}
726727
.instrument(info_span!("server")),
727728
async {

0 commit comments

Comments
 (0)