TestValidator now implements Drop, no need to close() it
This commit is contained in:
committed by
mergify[bot]
parent
0a9ff1dc9d
commit
bbad3fe501
@ -285,7 +285,7 @@ impl LocalCluster {
|
||||
self.exit();
|
||||
for (_, node) in self.validators.iter_mut() {
|
||||
if let Some(v) = node.validator.take() {
|
||||
v.join().expect("Validator join failed");
|
||||
v.join();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -609,7 +609,7 @@ impl Cluster for LocalCluster {
|
||||
// Shut down the validator
|
||||
let mut validator = node.validator.take().expect("Validator must be running");
|
||||
validator.exit();
|
||||
validator.join().unwrap();
|
||||
validator.join();
|
||||
node
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user