diff options
author | Siri Hansen <[email protected]> | 2015-11-27 13:04:58 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2015-12-04 11:53:44 +0100 |
commit | 976214f8d738d4852348496df79f84264d899aba (patch) | |
tree | 5bb0550afa5bb08ad3817cfb7baf4f1400a7e9f1 /lib/common_test | |
parent | 4cf832f1ad163f5b25dd8a6f2d314c169c23c82f (diff) | |
download | otp-976214f8d738d4852348496df79f84264d899aba.tar.gz otp-976214f8d738d4852348496df79f84264d899aba.tar.bz2 otp-976214f8d738d4852348496df79f84264d899aba.zip |
Extended table_trans timer in order to handle big data on slow machines
The test case netconfc1_SUITE:get_a_lot often fails with
table_trans_timeout in the netconf server (ns.erl) on virtual
machines. The correction is to overcome this problem.
Amount of data used in the test case is also reduced a bit.
Diffstat (limited to 'lib/common_test')
-rw-r--r-- | lib/common_test/test/ct_netconfc_SUITE_data/netconfc1_SUITE.erl | 2 | ||||
-rw-r--r-- | lib/common_test/test/ct_netconfc_SUITE_data/ns.erl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/common_test/test/ct_netconfc_SUITE_data/netconfc1_SUITE.erl b/lib/common_test/test/ct_netconfc_SUITE_data/netconfc1_SUITE.erl index 5f84634f74..2a8f8237bc 100644 --- a/lib/common_test/test/ct_netconfc_SUITE_data/netconfc1_SUITE.erl +++ b/lib/common_test/test/ct_netconfc_SUITE_data/netconfc1_SUITE.erl @@ -353,7 +353,7 @@ get(Config) -> get_a_lot(Config) -> DataDir = ?config(data_dir,Config), {ok,Client} = open_success(DataDir), - Descr = lists:append(lists:duplicate(1000,"Description of myserver! ")), + Descr = lists:append(lists:duplicate(100,"Description of myserver! ")), Server = {server,[{xmlns,"myns"}],[{name,[],["myserver"]}, {description,[],[Descr]}]}, Data = lists:duplicate(100,Server), diff --git a/lib/common_test/test/ct_netconfc_SUITE_data/ns.erl b/lib/common_test/test/ct_netconfc_SUITE_data/ns.erl index 3fc99e5486..07893faabc 100644 --- a/lib/common_test/test/ct_netconfc_SUITE_data/ns.erl +++ b/lib/common_test/test/ct_netconfc_SUITE_data/ns.erl @@ -306,7 +306,7 @@ table_trans(Fun,Args) -> receive {table_trans_done,Result} -> Result - after 5000 -> + after 20000 -> exit(table_trans_timeout) end end. |