diff options
author | marvin-j97 <marvin.janke.97@gmail.com> | 2024-09-04 19:24:36 +0200 |
---|---|---|
committer | marvin-j97 <marvin.janke.97@gmail.com> | 2024-09-04 19:24:36 +0200 |
commit | 8062ec7b4b6115e6158ec1b5523b4bd8dc0185be (patch) | |
tree | 156fb0d9fcfe42a73b326aae3a50a2962b3bade1 /src/db | |
parent | eb416a02fb9f6d7fef23d52d87624e2c23ec0336 (diff) | |
download | garage-8062ec7b4b6115e6158ec1b5523b4bd8dc0185be.tar.gz garage-8062ec7b4b6115e6158ec1b5523b4bd8dc0185be.zip |
test: fix db tests
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/test.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/test.rs b/src/db/test.rs index adb429e7..e3b7badf 100644 --- a/src/db/test.rs +++ b/src/db/test.rs @@ -12,7 +12,7 @@ fn test_suite(db: Db) { // ---- test simple insert/delete ---- - assert!(tree.insert(ka, va).unwrap().is_none()); + assert!(tree.insert(ka, va).is_ok()); assert_eq!(tree.get(ka).unwrap().unwrap(), va); assert_eq!(tree.len().unwrap(), 1); @@ -50,7 +50,7 @@ fn test_suite(db: Db) { assert!(iter.next().is_none()); drop(iter); - assert!(tree.insert(kb, vc).unwrap().is_none()); + assert!(tree.insert(kb, vc).is_ok()); assert_eq!(tree.get(kb).unwrap().unwrap(), vc); let mut iter = tree.iter().unwrap(); |