Skip to content

Commit

Permalink
Merge pull request #1574 from hermit-os/dependabot/cargo/ureq-3.0.1
Browse files Browse the repository at this point in the history
build(deps): upgrade ureq from 2 to 3
  • Loading branch information
mkroening authored Jan 28, 2025
2 parents 852c5c6 + 0c4757a commit 0a0148a
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 7 deletions.
85 changes: 83 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ goblin = { version = "0.9", default-features = false, features = ["archive", "el
home = "0.5"
ovmf-prebuilt = "0.2"
sysinfo = "0.33"
ureq = "2"
ureq = "3"
wait-timeout = "0.2"
xshell = "0.2"
14 changes: 10 additions & 4 deletions xtask/src/ci/qemu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,12 @@ fn test_http_server() -> Result<()> {
let url = "http://127.0.0.1:9975";
eprintln!("[CI] GET {url}");
let body = ureq::get(url)
.timeout(Duration::from_secs(3))
.config()
.timeout_global(Some(Duration::from_secs(3)))
.build()
.call()?
.into_string()?;
.into_body()
.read_to_string()?;
eprintln!("[CI] body = {body:?}");
assert_eq!(body, "Hello, world!\n");
Ok(())
Expand All @@ -373,9 +376,12 @@ fn test_httpd() -> Result<()> {
thread::sleep(Duration::from_secs(10));
eprintln!("[CI] GET http://127.0.0.1:9975");
let body = ureq::get("http://127.0.0.1:9975")
.timeout(Duration::from_secs(3))
.config()
.timeout_global(Some(Duration::from_secs(3)))
.build()
.call()?
.into_string()?;
.into_body()
.read_to_string()?;
eprintln!("[CI] {body}");
assert_eq!(body.lines().next(), Some("Hello from Hermit! 🦀"));
Ok(())
Expand Down

0 comments on commit 0a0148a

Please sign in to comment.