Skip to content

Commit

Permalink
remove redundant Drop implementation from ITF TemplateProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
plebhash committed Dec 11, 2024
1 parent aeacb0e commit e94758b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions roles/tests-integration/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,6 @@ impl TemplateProvider {
TemplateProvider { bitcoind }
}

fn stop(&self) {
let _ = self.bitcoind.client.stop().unwrap();
}

fn generate_blocks(&self, n: u64) {
let mining_address = self
.bitcoind
Expand All @@ -164,12 +160,6 @@ impl TemplateProvider {
}
}

impl Drop for TemplateProvider {
fn drop(&mut self) {
self.stop();
}
}

fn is_port_open(address: SocketAddr) -> bool {
TcpListener::bind(address).is_err()
}
Expand Down

0 comments on commit e94758b

Please sign in to comment.