[Rust Frontend] Fix mock engine test shutdown race (#48738)
Signed-off-by: reidliu41 <reid201711@gmail.com>
This commit is contained in:
@@ -90,8 +90,8 @@ async fn shutdown_mock(
|
||||
shutdown: CancellationToken,
|
||||
task: tokio::task::JoinHandle<Result<()>>,
|
||||
) {
|
||||
client.shutdown().await.expect("client shutdown");
|
||||
shutdown.cancel();
|
||||
client.shutdown().await.expect("client shutdown");
|
||||
task.await.expect("mock join").expect("mock run");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user