Skip to content

Commit 0ed1db2

Browse files
committed
Fix ut?
1 parent 6aec260 commit 0ed1db2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/document_tests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,8 @@ fn database_document_expiration() {
319319

320320
// Check documents disappears
321321
for _ in 0..5 {
322-
if db.get_document("foo").unwrap().is_deleted() {
322+
let doc = db.get_document("foo");
323+
if doc.is_err() || doc.unwrap().is_deleted() {
323324
return;
324325
}
325326

0 commit comments

Comments
 (0)