[pve-devel] [PATCH installer 10/14] auto-installer: tests: replace left/right with got/expected in output

Christoph Heiss c.heiss at proxmox.com
Wed Jul 10 15:27:49 CEST 2024


Makes more sense and makes debugging easier.

Signed-off-by: Christoph Heiss <c.heiss at 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
                 );
             }
-- 
2.45.1





More information about the pve-devel mailing list