mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
Re-enable test_fetch_sync_string
This commit is contained in:
parent
5b66f28fa3
commit
94889aef08
1 changed files with 3 additions and 12 deletions
15
src/http.rs
15
src/http.rs
|
@ -54,21 +54,12 @@ pub fn fetch_sync_string(module_name: &str) -> DenoResult<String> {
|
||||||
tokio_util::block_on(fetch_future)
|
tokio_util::block_on(fetch_future)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO(ry) Re-enabled this test. Disabling to work around bug in #782.
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_fetch_sync_string() {
|
fn test_fetch_sync_string() {
|
||||||
// Relies on external http server. See tools/http_server.py
|
// Relies on external http server. See tools/http_server.py
|
||||||
use futures;
|
|
||||||
|
|
||||||
tokio_util::init(|| {
|
tokio_util::init(|| {
|
||||||
tokio_util::block_on(futures::future::lazy(|| -> DenoResult<()> {
|
let p = fetch_sync_string("http://127.0.0.1:4545/package.json").unwrap();
|
||||||
let p = fetch_sync_string("http://127.0.0.1:4545/package.json")?;
|
println!("package.json len {}", p.len());
|
||||||
println!("package.json len {}", p.len());
|
assert!(p.len() > 1);
|
||||||
assert!(p.len() > 1);
|
|
||||||
Ok(())
|
|
||||||
})).unwrap();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue