We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use core::time::Duration; use reqwest::header::USER_AGENT; let _m = mock("GET", "/hello") .with_status(200) .with_header("content-type", "text/plain") .with_body("Hello World") .create(); let host = mockito::server_url(); let timeout = Duration::from_millis(3_000); let client = reqwest::blocking::Client::new(); let req = client .get(format!("{}/hello", host)) .header(USER_AGENT, "ParamiLinker/1.0") .timeout(timeout); let res = req.send().unwrap(); assert_eq!(res.bytes().unwrap().to_vec(), b"Hello World".to_vec());
fail to assert or got 503 error
left: `[]`, right: `[72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100]`
The text was updated successfully, but these errors were encountered:
This should be fixed in https://github.com/lipanski/mockito/releases/tag/0.32.0
Sorry, something went wrong.
No branches or pull requests
fail to assert or got 503 error
The text was updated successfully, but these errors were encountered: