diff --git a/roles/tests-integration/tests/common/mod.rs b/roles/tests-integration/tests/common/mod.rs index cf5be3d527..dd0b4d962a 100644 --- a/roles/tests-integration/tests/common/mod.rs +++ b/roles/tests-integration/tests/common/mod.rs @@ -163,6 +163,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() }