We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec9d048 commit b6f523bCopy full SHA for b6f523b
lightning-background-processor/src/lib.rs
@@ -615,21 +615,16 @@ mod tests {
615
let mut expected_bytes = Vec::new();
616
loop {
617
expected_bytes.clear();
618
- match $node.lock() {
619
- Ok(node) => {
620
- match node.write(&mut expected_bytes) {
621
- Ok(_) => {
622
- match std::fs::read($filepath) {
623
- Ok(bytes) => {
624
- if bytes == expected_bytes {
625
- break
626
- } else {
627
- continue
628
- }
629
- },
630
- Err(_) => continue
+ match $node.lock().unwrap().write(&mut expected_bytes) {
+ Ok(_) => {
+ match std::fs::read($filepath) {
+ Ok(bytes) => {
+ if bytes == expected_bytes {
+ break
+ } else {
+ continue
631
}
632
+ },
633
Err(_) => continue
634
635
},
0 commit comments