Skip to content

Commit a60f640

Browse files
committed
tests: Fix warnings from clippy::mut_mutex_lock
1 parent 9016044 commit a60f640

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

graph/src/components/network_provider/genesis_hash_check.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ mod tests {
185185
update_identifier_calls,
186186
} = self;
187187

188-
assert!(validate_identifier_calls.lock().unwrap().is_empty());
189-
assert!(update_identifier_calls.lock().unwrap().is_empty());
188+
assert!(validate_identifier_calls.get_mut().unwrap().is_empty());
189+
assert!(update_identifier_calls.get_mut().unwrap().is_empty());
190190
}
191191
}
192192

@@ -226,7 +226,7 @@ mod tests {
226226
chain_identifier_calls,
227227
} = self;
228228

229-
assert!(chain_identifier_calls.lock().unwrap().is_empty());
229+
assert!(chain_identifier_calls.get_mut().unwrap().is_empty());
230230
}
231231
}
232232

graph/src/components/network_provider/provider_manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ mod tests {
428428
provider_name_calls,
429429
} = self;
430430

431-
assert!(provider_name_calls.lock().unwrap().is_empty());
431+
assert!(provider_name_calls.get_mut().unwrap().is_empty());
432432
}
433433
}
434434

0 commit comments

Comments
 (0)