diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/receptor.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/receptor.rs b/tests/receptor.rs index 8bbadf4..56a1666 100644 --- a/tests/receptor.rs +++ b/tests/receptor.rs @@ -435,7 +435,9 @@ fn pack_from_sources() { let path = host.root.join("sources.json"); std::fs::write(&path, list.to_string()).unwrap(); let out = host.root.join("packed"); - enstate::pack::pack(&path, &out, Some(&schema.0)).unwrap(); + let warnings = enstate::pack::pack(&path, &out, Some(&schema.0)).unwrap(); + assert_eq!(warnings.len(), 1, "{warnings:?}"); + assert!(warnings[0].starts_with("item secrets/extra: its source is text with placeholders")); // Byte-exact entries: trailing line breaks stay. assert_eq!( std::fs::read(out.join("channels/secrets/a.key")).unwrap(), |
