These are not realistic test cases, so we do not have to worry about them. Moreover, allowing instances without any memory usage will make example cluster generated by iterated allocation fail, as the ahead-of-time estimate of the number of iteration steps will result in a division by 0.
Signed-off-by: Klaus Aehlig <[email protected]> --- test/hs/Test/Ganeti/HTools/Instance.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/hs/Test/Ganeti/HTools/Instance.hs b/test/hs/Test/Ganeti/HTools/Instance.hs index 190bfc2..dcd4b79 100644 --- a/test/hs/Test/Ganeti/HTools/Instance.hs +++ b/test/hs/Test/Ganeti/HTools/Instance.hs @@ -88,7 +88,7 @@ genInstanceWithin min_mem min_dsk min_cpu min_spin -- | Generate an instance with maximum disk/mem/cpu values. genInstanceSmallerThan :: Int -> Int -> Int -> Maybe Int -> Gen Instance.Instance -genInstanceSmallerThan = genInstanceWithin 0 0 0 0 +genInstanceSmallerThan = genInstanceWithin 1 0 1 0 -- | Generates an instance smaller than a node. genInstanceSmallerThanNode :: Node.Node -> Gen Instance.Instance -- 2.5.0.rc2.392.g76e840b
