From 3baa841d6f62a75bf74ed0c26499b447c50bf32f Mon Sep 17 00:00:00 2001 From: Jill Date: Wed, 2 Feb 2022 16:07:26 +0100 Subject: tests: Fix garage integration test --- src/garage/tests/common/garage.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/garage/tests/common') 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 = 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(); } } } -- cgit v1.2.3