Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Sep 13, 2024
1 parent 39ce202 commit f20664e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -783,8 +783,8 @@ pub(crate) fn last<W: Wal<Ascend, Crc32>>(wal: &mut W) {
}

let (key, value) = wal.last().unwrap();
assert_eq!(key, 999u32.to_be_bytes());
assert_eq!(value, 999u32.to_be_bytes());
assert_eq!(key, 99u32.to_be_bytes());
assert_eq!(value, 99u32.to_be_bytes());
}

pub(crate) fn get_or_insert<W: Wal<Ascend, Crc32>>(wal: &mut W) {
Expand Down
5 changes: 5 additions & 0 deletions src/unsync/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ use super::*;
const MB: u32 = 1024 * 1024;

common_unittests!(unsync::OrderWal);

#[test]
fn test_last_inmemory1() {
last(&mut OrderWal::new(Builder::new().with_capacity(MB)).unwrap());
}

0 comments on commit f20664e

Please sign in to comment.