aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/downloader/zip_downloader_test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/tests/downloader/zip_downloader_test.rs')
-rw-r--r--crates/shirabe/tests/downloader/zip_downloader_test.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/crates/shirabe/tests/downloader/zip_downloader_test.rs b/crates/shirabe/tests/downloader/zip_downloader_test.rs
index b8fddf68..878c8054 100644
--- a/crates/shirabe/tests/downloader/zip_downloader_test.rs
+++ b/crates/shirabe/tests/downloader/zip_downloader_test.rs
@@ -1,5 +1,6 @@
//! ref: composer/tests/Composer/Test/Downloader/ZipDownloaderTest.php
+use crate::async_runtime::run;
use crate::io_stub::IOStub;
use indexmap::IndexMap;
use serial_test::serial;
@@ -17,13 +18,6 @@ use shirabe_php_shim::{PhpMixed, ZipArchive, ZipArchiveMock};
use shirabe_semver::VersionParser;
use tempfile::TempDir;
-fn run<F: std::future::Future>(future: F) -> F::Output {
- tokio::runtime::Builder::new_current_thread()
- .build()
- .unwrap()
- .block_on(future)
-}
-
struct SetUp {
test_dir: TempDir,
io: std::rc::Rc<std::cell::RefCell<dyn IOInterface>>,