Skip to content

Commit

Permalink
update gemini test conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
yggverse committed Jan 13, 2025
1 parent 339f0bb commit c67593e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ use ggemini::client::connection::Request;
fn client_connection_request_gemini() {
const REQUEST: &str = "gemini://geminiprotocol.net/";
assert_eq!(
&match Request::gemini(Uri::parse(REQUEST, UriFlags::NONE).unwrap()) {
Request::Gemini(request) => request.uri.to_string(),
_ => panic!(),
},
REQUEST
std::str::from_utf8(
&Request::gemini(Uri::parse(REQUEST, UriFlags::NONE).unwrap()).to_bytes()
)
.unwrap(),
format!("{REQUEST}\r\n")
);
}

Expand Down

0 comments on commit c67593e

Please sign in to comment.