aboutsummaryrefslogtreecommitdiff
path: root/src/garage/tests
diff options
context:
space:
mode:
authorJill <kokakiwi@deuxfleurs.fr>2022-02-02 16:07:26 +0100
committerJill <kokakiwi@deuxfleurs.fr>2022-02-10 17:55:49 +0100
commit3baa841d6f62a75bf74ed0c26499b447c50bf32f (patch)
treecc56457c842680d670c54a108d1e8bdd15d29c34 /src/garage/tests
parentdd407e7041102f52611336bef304c3266a4d6fbe (diff)
downloadgarage-3baa841d6f62a75bf74ed0c26499b447c50bf32f.tar.gz
garage-3baa841d6f62a75bf74ed0c26499b447c50bf32f.zip
tests: Fix garage integration test
Diffstat (limited to 'src/garage/tests')
-rw-r--r--src/garage/tests/common/garage.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/garage/tests/common/garage.rs b/src/garage/tests/common/garage.rs
index e579f03c..97c7a227 100644
--- a/src/garage/tests/common/garage.rs
+++ b/src/garage/tests/common/garage.rs
@@ -179,12 +179,6 @@ index = "index.html"
}
}
-impl Drop for Instance {
- fn drop(&mut self) {
- self.terminate()
- }
-}
-
static mut INSTANCE: MaybeUninit<Instance> = MaybeUninit::uninit();
static INSTANCE_INIT: Once = Once::new();
@@ -192,7 +186,7 @@ static INSTANCE_INIT: Once = Once::new();
extern "C" fn terminate_instance() {
if INSTANCE_INIT.is_completed() {
unsafe {
- INSTANCE.assume_init_drop();
+ INSTANCE.assume_init_mut().terminate();
}
}
}