From d053f0743be084e43badbeaf551044ebc9dca4e3 Mon Sep 17 00:00:00 2001 From: Michael Rodler Date: Mon, 19 Jun 2023 22:01:13 +0200 Subject: [PATCH] disabled two assertions while fuzzing Signed-off-by: Michael Rodler --- src/proto/connection.rs | 1 + src/proto/streams/store.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/proto/connection.rs b/src/proto/connection.rs index 727643a6..5d6ad13f 100644 --- a/src/proto/connection.rs +++ b/src/proto/connection.rs @@ -448,6 +448,7 @@ where // This is handled by resetting the frame then trying to read // another frame. Err(Error::Reset(id, reason, initiator)) => { + #[cfg(not(fuzzing))] debug_assert_eq!(initiator, Initiator::Library); tracing::trace!(?id, ?reason, "stream error"); self.streams.send_reset(id, reason); diff --git a/src/proto/streams/store.rs b/src/proto/streams/store.rs index d33a01cc..dc7401c4 100644 --- a/src/proto/streams/store.rs +++ b/src/proto/streams/store.rs @@ -226,6 +226,7 @@ impl Drop for Store { fn drop(&mut self) { use std::thread; + #[cfg(not(fuzzing))] if !thread::panicking() { debug_assert!(self.slab.is_empty()); }