Skip to content

Commit

Permalink
testing: initialize manifest before loading
Browse files Browse the repository at this point in the history
Missed this when adding init requirement in
bottlerocket-os#991
  • Loading branch information
tjkirch committed Jul 20, 2020
1 parent d5885a7 commit c90d080
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sources/updater/updog/src/bin/updata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ mod tests {
#[test]
fn max_versions() -> Result<()> {
let tmpfd = NamedTempFile::new().context(error::TmpFileCreate)?;
update_metadata::write_file(tmpfd.path(), &Manifest::default()).unwrap();
AddUpdateArgs {
file: PathBuf::from(tmpfd.path()),
variant: String::from("yum"),
Expand Down

0 comments on commit c90d080

Please sign in to comment.