From c90d08031638f052fb18ba855df0bf35ec473fe9 Mon Sep 17 00:00:00 2001 From: Tom Kirchner Date: Mon, 20 Jul 2020 11:39:11 -0700 Subject: [PATCH] testing: initialize manifest before loading Missed this when adding init requirement in /~https://github.com/bottlerocket-os/bottlerocket/pull/991 --- sources/updater/updog/src/bin/updata.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/updater/updog/src/bin/updata.rs b/sources/updater/updog/src/bin/updata.rs index 4d549983df2..b2dde89afe9 100644 --- a/sources/updater/updog/src/bin/updata.rs +++ b/sources/updater/updog/src/bin/updata.rs @@ -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"),