Skip to content

Commit cea7987

Browse files
committed
Update database tests to verify set_utxo upserts
1 parent 4c1749a commit cea7987

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/database/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ pub mod test {
323323
};
324324

325325
tree.set_utxo(&utxo).unwrap();
326-
326+
tree.set_utxo(&utxo).unwrap();
327+
assert_eq!(tree.iter_utxos().unwrap().len(), 1);
327328
assert_eq!(tree.get_utxo(&outpoint).unwrap(), Some(utxo));
328329
}
329330

0 commit comments

Comments
 (0)