aboutsummaryrefslogtreecommitdiff
path: root/src/db/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/test.rs')
-rw-r--r--src/db/test.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/test.rs b/src/db/test.rs
index e3b7badf..26b816b8 100644
--- a/src/db/test.rs
+++ b/src/db/test.rs
@@ -21,7 +21,7 @@ fn test_suite(db: Db) {
let res = db.transaction::<_, (), _>(|tx| {
assert_eq!(tx.get(&tree, ka).unwrap().unwrap(), va);
- assert_eq!(tx.insert(&tree, ka, vb).unwrap().unwrap(), va);
+ assert_eq!(tx.insert(&tree, ka, vb).unwrap(), ());
assert_eq!(tx.get(&tree, ka).unwrap().unwrap(), vb);
@@ -33,7 +33,7 @@ fn test_suite(db: Db) {
let res = db.transaction::<(), _, _>(|tx| {
assert_eq!(tx.get(&tree, ka).unwrap().unwrap(), vb);
- assert_eq!(tx.insert(&tree, ka, vc).unwrap().unwrap(), vb);
+ assert_eq!(tx.insert(&tree, ka, vc).unwrap(), ());
assert_eq!(tx.get(&tree, ka).unwrap().unwrap(), vc);