The heuristic was changed in the commit mentioned below, the respective
test needs adjustment too.

Fixes: 08136f8 ("avoid artificial limit and allow using up to half of hdsize as 
swap")
Signed-off-by: Christoph Heiss <c.he...@proxmox.com>
---
 .../parse_answer_fail/lvm_swapsize_greater_than_hdsize.json     | 2 +-
 .../parse_answer_fail/lvm_swapsize_greater_than_hdsize.toml     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/proxmox-auto-installer/tests/resources/parse_answer_fail/lvm_swapsize_greater_than_hdsize.json
 
b/proxmox-auto-installer/tests/resources/parse_answer_fail/lvm_swapsize_greater_than_hdsize.json
index aa4f7fe..e0e59c5 100644
--- 
a/proxmox-auto-installer/tests/resources/parse_answer_fail/lvm_swapsize_greater_than_hdsize.json
+++ 
b/proxmox-auto-installer/tests/resources/parse_answer_fail/lvm_swapsize_greater_than_hdsize.json
@@ -1,3 +1,3 @@
 {
-  "error": "Swap size 4.01 GiB cannot be greater than 4 GiB (hard disk size / 
8)"
+  "error": "Swap size 16.01 GiB cannot be greater than 16 GiB (hard disk size 
/ 2)"
 }
diff --git 
a/proxmox-auto-installer/tests/resources/parse_answer_fail/lvm_swapsize_greater_than_hdsize.toml
 
b/proxmox-auto-installer/tests/resources/parse_answer_fail/lvm_swapsize_greater_than_hdsize.toml
index ffe16dc..22a7f6b 100644
--- 
a/proxmox-auto-installer/tests/resources/parse_answer_fail/lvm_swapsize_greater_than_hdsize.toml
+++ 
b/proxmox-auto-installer/tests/resources/parse_answer_fail/lvm_swapsize_greater_than_hdsize.toml
@@ -11,6 +11,6 @@ source = "from-dhcp"
 
 [disk-setup]
 filesystem = "ext4"
-lvm.swapsize = 4.01
+lvm.swapsize = 16.01
 lvm.hdsize = 32
 disk-list = ["sda"]
-- 
2.49.0



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to