diff --git a/mock/breez-sdk/src/lib.rs b/mock/breez-sdk/src/lib.rs index 6d936e67..5378c708 100644 --- a/mock/breez-sdk/src/lib.rs +++ b/mock/breez-sdk/src/lib.rs @@ -439,7 +439,7 @@ impl BreezServices { req: ReceivePaymentRequest, ) -> Result { // Has nothing to do with receiving a payment, but is a mechanism to control the mock - match req.description.to_lowercase().as_str() { + match req.description.trim().to_lowercase().as_str() { "health.operational" => *HEALTH_STATUS.lock().unwrap() = HealthCheckStatus::Operational, "health.maintenance" => *HEALTH_STATUS.lock().unwrap() = HealthCheckStatus::Maintenance, "health.disruption" => {