summaryrefslogtreecommitdiff
path: root/cli/http_util.rs
diff options
context:
space:
mode:
authorRy Dahl <ry@tinyclouds.org>2019-10-31 22:33:27 -0400
committerBert Belder <bertbelder@gmail.com>2019-10-31 19:33:27 -0700
commitaf61dbed874863db308f3a421ad142a7f106687a (patch)
tree083946a0071ddf4ddde51df54064ce8b56d1e812 /cli/http_util.rs
parent9d6cbb73a8dcf63b24630129f47dc98d3cc735d5 (diff)
Upgrade node_modules, change tagline, clean up root directory (#3247)
* Upgrade node_modules * Simplify tagline * Move gclient_config.py out of root * Move package.json to tools * Remove yarn.lock * Remove CONTRIBUTING.md
Diffstat (limited to 'cli/http_util.rs')
-rw-r--r--cli/http_util.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/cli/http_util.rs b/cli/http_util.rs
index 754cd60d2..d3bc16415 100644
--- a/cli/http_util.rs
+++ b/cli/http_util.rs
@@ -143,7 +143,8 @@ mod tests {
fn test_fetch_sync_string() {
let http_server_guard = crate::test_util::http_server();
// Relies on external http server. See tools/http_server.py
- let url = Url::parse("http://127.0.0.1:4545/package.json").unwrap();
+ let url =
+ Url::parse("http://127.0.0.1:4545/cli/tests/fixture.json").unwrap();
let fut = fetch_string_once(&url).then(|result| match result {
Ok(FetchOnceResult::Code(code, maybe_content_type)) => {
@@ -162,9 +163,11 @@ mod tests {
fn test_fetch_string_once_with_redirect() {
let http_server_guard = crate::test_util::http_server();
// Relies on external http server. See tools/http_server.py
- let url = Url::parse("http://127.0.0.1:4546/package.json").unwrap();
+ let url =
+ Url::parse("http://127.0.0.1:4546/cli/tests/fixture.json").unwrap();
// Dns resolver substitutes `127.0.0.1` with `localhost`
- let target_url = Url::parse("http://localhost:4545/package.json").unwrap();
+ let target_url =
+ Url::parse("http://localhost:4545/cli/tests/fixture.json").unwrap();
let fut = fetch_string_once(&url).then(move |result| match result {
Ok(FetchOnceResult::Redirect(url)) => {
assert_eq!(url, target_url);