Skip to content

Commit 872cc52

Browse files
committed
Remove obsolete test
1 parent b4937ea commit 872cc52

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

src/lib.rs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -489,33 +489,6 @@ mod tests {
489489
}
490490
}
491491

492-
#[test]
493-
fn purge() {
494-
let dir = tempdir().unwrap();
495-
let mut index = Index::new(&dir).unwrap();
496-
497-
for i in 0..N {
498-
index.insert(i, i).unwrap();
499-
}
500-
for i in 0..N {
501-
assert_eq!(index.get(&i).unwrap(), Some(&i));
502-
}
503-
504-
index.purge().unwrap();
505-
506-
for i in 0..N {
507-
assert_eq!(index.get(&i).unwrap(), None);
508-
}
509-
510-
// repopulate
511-
for i in 0..N {
512-
index.insert(i, i).unwrap();
513-
}
514-
for i in 0..N {
515-
assert_eq!(index.get(&i).unwrap(), Some(&i));
516-
}
517-
}
518-
519492
const N_THREADS: usize = 8;
520493

521494
// The stress test creates an index, and simultaneously writes

0 commit comments

Comments
 (0)