Commits

arkdro committed 1dd1ba1

add warm up timer in config

Comments (0)

Files changed (2)

erlang/test/num_SUITE.erl

 
 test1(Config) ->
     start_prog(Config),
-    timer:sleep(100),
+    Warmup = ct:get_config(warm_up_time, 1000),
+    timer:sleep(Warmup),
     Len = ct:get_config(length, 1),
     ct:timetrap(round(Len) * 10 + 10000),
     do_test_loop(Len).

erlang/test/test.config

 %% {odeci_node, 't2@localhost.localdomain'}.
 {odeci_prog, 't1.sh'}. %% relative to priv/
 
+{warm_up_time, 1000}. %% time between odeci_prog start and tests
 {length, 10000}. %% length of test sequence
 
 %% random sign for decimals