diff --git a/roles/tests-integration/tests/common/mod.rs b/roles/tests-integration/tests/common/mod.rs index 00e6358db7..0a8734f44b 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() }