Skip to content

Commit

Permalink
Change store debug_assert to only run in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed May 6, 2020
1 parent cfc7584 commit c460c6e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/proto/streams/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,12 @@ impl Store {
}
}

// While running h2 unit/integration tests, enable this debug assertion.
//
// In practice, we don't need to ensure this. But the integration tests
// help to make sure we've cleaned up in cases where we could (like, the
// runtime isn't suddenly dropping the task for unknown reasons).
#[cfg(feature = "unstable")]
impl Drop for Store {
fn drop(&mut self) {
use std::thread;
Expand Down

0 comments on commit c460c6e

Please sign in to comment.