From 3fa3b5e7c6da9ada6b8a578f46b78b88a5bc07e0 Mon Sep 17 00:00:00 2001 From: Waylon Jepsen Date: Tue, 10 Oct 2023 16:18:25 -0600 Subject: [PATCH] remove test fail case --- bin/fork/tests.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/fork/tests.rs b/bin/fork/tests.rs index 41e7887a..6c5471a3 100644 --- a/bin/fork/tests.rs +++ b/bin/fork/tests.rs @@ -25,8 +25,8 @@ fn write_out() { assert!(disk_op.is_ok()); }); - let remove_op = fs::remove_file(PATH_TO_DISK_STORAGE); - assert!(remove_op.is_ok()); + fs::remove_file(PATH_TO_DISK_STORAGE).unwrap(); + } #[test] @@ -51,6 +51,5 @@ fn read_in() { let forked_db = Fork::from_disk(PATH_TO_DISK_STORAGE); assert!(forked_db.is_ok()); }); - let remove_op = fs::remove_file(PATH_TO_DISK_STORAGE); - assert!(remove_op.is_ok()); + fs::remove_file(PATH_TO_DISK_STORAGE).unwrap(); }