Return more error details on http's read_response
[rust-lightning] / lightning-block-sync / src / rest.rs
index 4c19388275fb935f18301600e211c118aeccda5b..e04bb86d4270f9c7aec1bc06f49a62b7af2e056a 100644 (file)
@@ -84,7 +84,7 @@ mod tests {
                let mut client = RestClient::new(server.endpoint()).unwrap();
 
                match client.request_resource::<BinaryResponse, u32>("/").await {
-                       Err(e) => assert_eq!(e.kind(), std::io::ErrorKind::NotFound),
+                       Err(e) => assert_eq!(e.kind(), std::io::ErrorKind::Other),
                        Ok(_) => panic!("Expected error"),
                }
        }