mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 00:45:37 +01:00
remove unnecessary test
This commit is contained in:
@@ -839,20 +839,6 @@ mod tests {
|
||||
cache.verify_list_integrity();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_insert_same_id_different_frame() {
|
||||
let mut cache = DumbLruPageCache::default();
|
||||
let key1_1 = PageCacheKey::new(1);
|
||||
let key1_2 = PageCacheKey::new(1);
|
||||
let page1_1 = page_with_content(1);
|
||||
let page1_2 = page_with_content(1);
|
||||
|
||||
assert!(cache.insert(key1_1.clone(), page1_1.clone()).is_ok());
|
||||
assert!(cache.insert(key1_2.clone(), page1_2.clone()).is_ok());
|
||||
assert_eq!(cache.len(), 2);
|
||||
cache.verify_list_integrity();
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[should_panic(expected = "Attempted to insert different page with same key")]
|
||||
fn test_insert_existing_key_fail() {
|
||||
|
||||
Reference in New Issue
Block a user