summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-09 13:11:10 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-10-09 13:59:50 -0400
commit94889aef08909171ac5dc7b7c9c72c38d439bd7d (patch)
tree63eb426b38e9851de8c3beadde874edeab33c93f /src
parent5b66f28fa3041b57d1c5e4c54d07bf78e7ee8c0c (diff)
Re-enable test_fetch_sync_string
Diffstat (limited to 'src')
-rw-r--r--src/http.rs15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/http.rs b/src/http.rs
index 9ef9adb8f..86684207d 100644
--- a/src/http.rs
+++ b/src/http.rs
@@ -54,21 +54,12 @@ pub fn fetch_sync_string(module_name: &str) -> DenoResult<String> {
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);
});
}
-
-*/