diff --git a/vortex-ipc/src/reader.rs b/vortex-ipc/src/reader.rs index f8da140254..bc2f9ce642 100644 --- a/vortex-ipc/src/reader.rs +++ b/vortex-ipc/src/reader.rs @@ -575,6 +575,9 @@ mod tests { { let mut iter = array_reader.take(&indices).unwrap(); + + // verify that for a fully-consumed iterator, the destructor does not advance the + // underlying message stream to the next message, which would be very bad while iter.next().is_some() { // Consume the iterator }