From fc15fbddd0b7cc1c79983d47e17740b56555b4b4 Mon Sep 17 00:00:00 2001 From: jonathanpv Date: Fri, 31 Mar 2023 18:51:37 -0400 Subject: [PATCH] remove temp file after compose.stop() is called --- vdev/src/testing/integration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vdev/src/testing/integration.rs b/vdev/src/testing/integration.rs index b0838cd62530b..9e44677b1d703 100644 --- a/vdev/src/testing/integration.rs +++ b/vdev/src/testing/integration.rs @@ -146,6 +146,7 @@ impl IntegrationTest { self.runner.remove()?; compose.stop()?; self.envs_dir.remove()?; + std::fs::remove_file(&compose.path)?; } Ok(()) @@ -197,7 +198,6 @@ impl Compose { fn stop(&self) -> Result<()> { // The config settings are not needed when stopping a compose setup. - std::fs::remove_file(&self.path)?; self.run("Stopping", &["down", "--timeout", "0", "--volumes"], None) }