We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f119ed2 commit 5001146Copy full SHA for 5001146
lightning-background-processor/src/lib.rs
@@ -642,21 +642,16 @@ mod tests {
642
let mut expected_bytes = Vec::new();
643
loop {
644
expected_bytes.clear();
645
- match $node.lock() {
646
- Ok(node) => {
647
- match node.write(&mut expected_bytes) {
648
- Ok(_) => {
649
- match std::fs::read($filepath) {
650
- Ok(bytes) => {
651
- if bytes == expected_bytes {
652
- break
653
- } else {
654
- continue
655
- }
656
- },
657
- 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
658
}
659
+ },
660
Err(_) => continue
661
662
},
0 commit comments