diff --git a/src/tests/history.rs b/src/tests/history.rs index db1942f07..2b0329f74 100644 --- a/src/tests/history.rs +++ b/src/tests/history.rs @@ -309,7 +309,11 @@ fn test_history_races() { continue; }; - // Remove everything from this item on + // Remove the item we found. + list.remove(position); + + // We expected this item to be the last. Items after this item + // in this array were therefore not found in history. let removed = list.drain(position..); for line in removed.into_iter().rev() { printf!("Item dropped from history: %ls\n", line);