Drop check better message

This commit is contained in:
Igor Katson 2024-08-21 16:56:06 +01:00
parent 2ad5fa2f12
commit a5abe97735
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 18 additions and 6 deletions

View file

@ -38,7 +38,12 @@ async fn test_e2e_download() {
.unwrap();
// Wait to ensure everything is dropped.
tokio::time::sleep(Duration::from_secs(1)).await;
tokio::time::sleep(Duration::from_secs(10)).await;
let metrics = tokio::runtime::Handle::current().metrics();
assert_eq!(metrics.num_alive_tasks(), 1);
drop_checks.check().unwrap();
}
async fn _test_e2e_download(drop_checks: &DropChecks) {