Change store debug_assert to only run in tests

This commit is contained in:
Sean McArthur
2020-05-06 12:37:58 -07:00
parent cfc7584eb6
commit c460c6e581

View File

@@ -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;