Return more error details on http's read_response
[rust-lightning] / lightning-block-sync / src / rpc.rs
index cc3bc4525a1289fbe0d87344b4c865458182f480..66570bcb57c032353ab0d6a2f500bcda91740381 100644 (file)
@@ -118,7 +118,7 @@ mod tests {
                let mut client = RpcClient::new(CREDENTIALS, server.endpoint()).unwrap();
 
                match client.call_method::<u64>("getblockcount", &[]).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"),
                }
        }