You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
"Client handler received LSPS0 request message. This should never happen."
97
+
);
98
+
Err(LightningError{err:format!("Client handler received LSPS0 request message from node {:?}. This should never happen.", counterparty_node_id),action:ErrorAction::IgnoreAndLog(Level::Info)})
99
+
}
128
100
}
129
101
}
130
102
}
@@ -135,6 +107,8 @@ mod tests {
135
107
use alloc::string::ToString;
136
108
use alloc::sync::Arc;
137
109
110
+
usecrate::lsps0::msgs::RequestId;
111
+
138
112
usesuper::*;
139
113
140
114
structTestEntropy{}
@@ -144,50 +118,12 @@ mod tests {
144
118
}
145
119
}
146
120
147
-
#[test]
148
-
fntest_handle_list_protocols_request(){
149
-
let entropy = Arc::new(TestEntropy{});
150
-
let protocols:Vec<u16> = vec![];
151
-
let pending_messages = Arc::new(Mutex::new(vec![]));
"Service handler received LSPS0 response message. This should never happen."
79
+
);
80
+
Err(LightningError{err:format!("Service handler received LSPS0 response message from node {:?}. This should never happen.", counterparty_node_id),action:ErrorAction::IgnoreAndLog(Level::Info)})
81
+
}
82
+
}
83
+
}
84
+
}
85
+
86
+
#[cfg(test)]
87
+
mod tests {
88
+
89
+
usecrate::lsps0::msgs::ListProtocolsRequest;
90
+
usecrate::utils;
91
+
use alloc::string::ToString;
92
+
use alloc::sync::Arc;
93
+
94
+
usesuper::*;
95
+
96
+
#[test]
97
+
fntest_handle_list_protocols_request(){
98
+
let protocols:Vec<u16> = vec![];
99
+
let pending_messages = Arc::new(Mutex::new(vec![]));
100
+
101
+
let lsps0_handler = Arc::new(LSPS0ServiceHandler::new(protocols, pending_messages.clone()));
102
+
103
+
let list_protocols_request = LSPS0Message::Request(
0 commit comments