On 7/10/24 15:27, Christoph Heiss wrote: > Makes more sense and makes debugging easier. > > Signed-off-by: Christoph Heiss <c.he...@proxmox.com> > --- > proxmox-auto-installer/tests/parse-answer.rs | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/proxmox-auto-installer/tests/parse-answer.rs > b/proxmox-auto-installer/tests/parse-answer.rs > index 450915a..81079b8 100644 > --- a/proxmox-auto-installer/tests/parse-answer.rs > +++ b/proxmox-auto-installer/tests/parse-answer.rs > @@ -77,7 +77,7 @@ fn test_parse_answers() { > let compare: Value = serde_json::from_str(&compare_raw).unwrap(); > if config != compare { > panic!( > - "Test {} failed:\nleft: {:#?}\nright: {:#?}\n", > + "Test {} failed:\ngot: {:#?}\nexpected: {:#?}\n", > name, config, compare > ); > }
maybe use assert_eq!() here altogether? Also above in the file use assert!(!runtime_info.disks.is_empty()) ? _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel