From 69a856ce6dc8bd99e4f86c349526cbeb3277f902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Gonz=C3=A1lez?= Date: Sun, 24 Sep 2023 19:21:02 +0200 Subject: [PATCH] test: update unit tests for ea933d50675366d36d9e23af55e0c4e38d232388 --- packages/packsquash/src/squash_zip/tests.rs | 24 ++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/packages/packsquash/src/squash_zip/tests.rs b/packages/packsquash/src/squash_zip/tests.rs index fa1523b9b..b8094b21c 100644 --- a/packages/packsquash/src/squash_zip/tests.rs +++ b/packages/packsquash/src/squash_zip/tests.rs @@ -94,7 +94,10 @@ async fn add_files_finish_and_read_back_test( .expect(RELATIVE_PATH_INSTANTIATION_FAILURE), &mut tokio_stream::iter(std::iter::repeat(&[file_byte(i)][..]).take(file_size)), skip_compression(i), - file_size + file_size, + FileListingCircumstances { + is_atlas_texture: false + } ) .await .expect(UNEXPECTED_OPERATION_FAILURE); @@ -338,7 +341,12 @@ async fn add_several_finish_then_reuse_and_add_works() { // Add the previous visions0.bin file squash_zip - .add_previous_file(&RelativePath::from_inner("virtual/visions0.bin")) + .add_previous_file( + &RelativePath::from_inner("virtual/visions0.bin"), + FileListingCircumstances { + is_atlas_texture: false + } + ) .await .expect(UNEXPECTED_OPERATION_FAILURE); @@ -409,7 +417,17 @@ async fn several_files_with_same_path_are_handled_properly() { .expect(INSTANTIATION_FAILURE); let file_path = &RelativePath::from_inner("virtual/visions0.bin"); - let add_file = || squash_zip.add_file(file_path, tokio_stream::once([0]), true, 1); + let add_file = || { + squash_zip.add_file( + file_path, + tokio_stream::once([0]), + true, + 1, + FileListingCircumstances { + is_atlas_texture: false + } + ) + }; add_file().await.expect(UNEXPECTED_OPERATION_FAILURE); add_file().await.expect_err(UNEXPECTED_OPERATION_FAILURE);