From 7f07f7d567bc0bfde9fae460b1c9563ebfe928ff Mon Sep 17 00:00:00 2001 From: Guanqun Lu Date: Sat, 10 Jun 2017 00:13:50 +0800 Subject: [PATCH] ArchiveDB: add a contains() test for long history test case --- util/src/journaldb/archivedb.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/util/src/journaldb/archivedb.rs b/util/src/journaldb/archivedb.rs index 1f9381c99..b86064d8f 100644 --- a/util/src/journaldb/archivedb.rs +++ b/util/src/journaldb/archivedb.rs @@ -239,6 +239,7 @@ mod tests { jdb.commit_batch(3, &b"3".sha3(), Some((0, b"0".sha3()))).unwrap(); assert!(jdb.contains(&h)); jdb.commit_batch(4, &b"4".sha3(), Some((1, b"1".sha3()))).unwrap(); + assert!(jdb.contains(&h)); } #[test]