From 94889aef08909171ac5dc7b7c9c72c38d439bd7d Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 9 Oct 2018 13:11:10 -0400 Subject: [PATCH] Re-enable test_fetch_sync_string --- src/http.rs | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/http.rs b/src/http.rs index 9ef9adb8..86684207 100644 --- a/src/http.rs +++ b/src/http.rs @@ -54,21 +54,12 @@ pub fn fetch_sync_string(module_name: &str) -> DenoResult { tokio_util::block_on(fetch_future) } -/* TODO(ry) Re-enabled this test. Disabling to work around bug in #782. - #[test] fn test_fetch_sync_string() { // Relies on external http server. See tools/http_server.py - use futures; - tokio_util::init(|| { - tokio_util::block_on(futures::future::lazy(|| -> DenoResult<()> { - let p = fetch_sync_string("http://127.0.0.1:4545/package.json")?; - println!("package.json len {}", p.len()); - assert!(p.len() > 1); - Ok(()) - })).unwrap(); + let p = fetch_sync_string("http://127.0.0.1:4545/package.json").unwrap(); + println!("package.json len {}", p.len()); + assert!(p.len() > 1); }); } - -*/ -- GitLab