From 16aa9bcddf58887849aaa36caf6e377eae3636dd Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Sat, 15 Jun 2024 15:33:15 -0700 Subject: [PATCH] test: fix a failing unit test --- src/write.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/write.rs b/src/write.rs index 929f6e61..4054a373 100644 --- a/src/write.rs +++ b/src/write.rs @@ -2870,8 +2870,7 @@ mod test { alignment: 65535, ..Default::default() }; - writer.add_directory_from_path("", options)?; - let _ = writer.finish_into_readable()?; + assert!(writer.add_directory_from_path("", options).is_err()); Ok(()) }