Skip to content

Commit 6a0736a

Browse files
committed
add test without padding
1 parent d2bdcd4 commit 6a0736a

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

crates/core/tests/integration/backup.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ use pretty_assertions::assert_eq;
99
use rstest::rstest;
1010

1111
use rustic_core::{
12-
BackupOptions, CommandInput, ParentOptions, PathList, SnapshotGroupCriterion, SnapshotOptions,
13-
StringList,
12+
BackupOptions, CommandInput, ConfigOptions, ParentOptions, PathList, SnapshotGroupCriterion,
13+
SnapshotOptions, StringList,
1414
repofile::{PackId, SnapshotFile},
1515
};
1616

@@ -153,7 +153,11 @@ fn test_backup_dry_run_with_tar_gz_passes(
153153
insta_node_redaction: Settings,
154154
) -> Result<()> {
155155
// Fixtures
156-
let (source, repo) = (tar_gz_testdata?, set_up_repo?.to_indexed_ids()?);
156+
let (source, mut repo) = (tar_gz_testdata?, set_up_repo?.to_indexed_ids()?);
157+
158+
// here, we additionally test without pack padding
159+
let opts = ConfigOptions::default().set_use_pack_padding(false);
160+
assert!(repo.apply_config(&opts)?);
157161

158162
let paths = &source.path_list();
159163

crates/core/tests/snapshots/integration__dryrun-tar-summary-first-nix.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ SnapshotFile(
3030
data_added: "[data_added]",
3131
data_added_packed: "[data_added_packed]",
3232
data_added_files: 1125653,
33-
data_added_files_packed: 131072,
33+
data_added_files_packed: 81646,
3434
data_added_trees: "[data_added_trees]",
3535
data_added_trees_packed: "[data_added_trees_packed]",
3636
command: "[command]",

0 commit comments

Comments
 (0)