fix gurtca post_json func

This commit is contained in:
Face
2025-08-25 13:33:42 +03:00
parent 257a88a914
commit 09d8ca77ac
3 changed files with 12 additions and 2 deletions

View File

@@ -631,12 +631,12 @@ mod tests {
async fn test_url_parsing() {
let client = GurtClient::new();
let (host, port, path) = client.parse_url("gurt://example.com/test").unwrap();
let (host, port, path) = client.parse_gurt_url("gurt://example.com/test").unwrap();
assert_eq!(host, "example.com");
assert_eq!(port, DEFAULT_PORT);
assert_eq!(path, "/test");
let (host, port, path) = client.parse_url("gurt://example.com:8080/api/v1").unwrap();
let (host, port, path) = client.parse_gurt_url("gurt://example.com:8080/api/v1").unwrap();
assert_eq!(host, "example.com");
assert_eq!(port, 8080);
assert_eq!(path, "/api/v1");