Skip to content

Commit

Permalink
Merge pull request #1291 from plebhash/fix-tp-drop-itf
Browse files Browse the repository at this point in the history
remove redundant `Drop` implementation from ITF `TemplateProvider`
  • Loading branch information
GitGab19 authored Dec 11, 2024
2 parents aeacb0e + e94758b commit 22da418
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 22da418

Please sign in to comment.