Commit 49f9627a authored by Iustin Pop's avatar Iustin Pop
Browse files

Change some test constants

First, we reduce the max size of the disks, since Int on 32bits will
overflow for big simulated clusters. This is a real issue, that will
need fixing in real life, but for now we just "silence" this test.

Second, we increase the amount of time a test is allowed to run,
otherwise on slower computers some tests might time-out.
parent 3ed46bb7
......@@ -52,9 +52,9 @@ import qualified Ganeti.HTools.Utils as Utils
maxMem :: Int
maxMem = 1024 * 1024
-- | Maximum disk (1PiB, somewhat random value)
-- | Maximum disk (8TiB, somewhat random value)
maxDsk :: Int
maxDsk = 1024 * 1024 * 1024
maxDsk = 1024 * 1024 * 8
-- | Max CPUs (1024, somewhat random value)
maxCpu :: Int
......
......@@ -36,7 +36,7 @@ import Ganeti.HTools.QC
options :: TestOptions
options = TestOptions
{ no_of_tests = 500
, length_of_tests = 5
, length_of_tests = 10
, debug_tests = False }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment