diff --git a/src/fd_monitor.rs b/src/fd_monitor.rs index 8a014e2dd..0cbd08d9c 100644 --- a/src/fd_monitor.rs +++ b/src/fd_monitor.rs @@ -487,6 +487,10 @@ fn run(self) { /// fds arounds; this is why it's very hacky! impl Drop for FdMonitor { fn drop(&mut self) { + #[allow(clippy::assertions_on_constants)] + { + assert!(cfg!(test)); + } self.data.locked.lock().expect("Mutex poisoned!").terminate = true; self.change_signaller.post();