Skip to content

Commit

Permalink
Impl Drop for TemplateProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
jbesraa committed Oct 2, 2024
1 parent 7c7cfec commit 3d66efc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/tests-integration/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ 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 3d66efc

Please sign in to comment.