From a211b72aeba53d9ff5fd6604e2f8562bcc176d3a Mon Sep 17 00:00:00 2001 From: Mikhail Uvarov Date: Fri, 10 May 2024 13:15:32 +0200 Subject: [PATCH] Add 10 seconds timetrap --- test/app.config | 1 + test/cets_SUITE.erl | 3 +++ test/cets_disco_SUITE.erl | 3 +++ test/cets_join_SUITE.erl | 3 +++ test/cets_status_SUITE.erl | 3 +++ test/cets_test_setup.erl | 5 +++++ 6 files changed, 18 insertions(+) create mode 100644 test/app.config diff --git a/test/app.config b/test/app.config new file mode 100644 index 0000000..f468a9d --- /dev/null +++ b/test/app.config @@ -0,0 +1 @@ +[{timetrap, 1}]. diff --git a/test/cets_SUITE.erl b/test/cets_SUITE.erl index 8e49f81..f1f2534 100644 --- a/test/cets_SUITE.erl +++ b/test/cets_SUITE.erl @@ -65,6 +65,9 @@ set_join_ref/2 ]). +suite() -> + cets_test_setup:suite(). + all() -> [ {group, cets}, diff --git a/test/cets_disco_SUITE.erl b/test/cets_disco_SUITE.erl index 08b410d..4f3052d 100644 --- a/test/cets_disco_SUITE.erl +++ b/test/cets_disco_SUITE.erl @@ -56,6 +56,9 @@ other_nodes/2 ]). +suite() -> + cets_test_setup:suite(). + all() -> [ {group, cets}, diff --git a/test/cets_join_SUITE.erl b/test/cets_join_SUITE.erl index ac44c62..2815241 100644 --- a/test/cets_join_SUITE.erl +++ b/test/cets_join_SUITE.erl @@ -67,6 +67,9 @@ other_nodes/2 ]). +suite() -> + cets_test_setup:suite(). + all() -> [ {group, cets}, diff --git a/test/cets_status_SUITE.erl b/test/cets_status_SUITE.erl index a6bb648..01ce0a4 100644 --- a/test/cets_status_SUITE.erl +++ b/test/cets_status_SUITE.erl @@ -50,6 +50,9 @@ other_nodes/2 ]). +suite() -> + cets_test_setup:suite(). + all() -> [ {group, cets} diff --git a/test/cets_test_setup.erl b/test/cets_test_setup.erl index 48715fe..d6827a2 100644 --- a/test/cets_test_setup.erl +++ b/test/cets_test_setup.erl @@ -1,4 +1,6 @@ -module(cets_test_setup). +-export([suite/0]). + -export([ mock_epmd/0, mock_pause_on_remote_node_failing/0 @@ -51,6 +53,9 @@ -import(cets_test_rpc, [rpc/4]). +suite() -> + [{timetrap, {seconds, 10}}]. + mock_epmd() -> meck:new(erl_epmd, [passthrough, unstick]), meck:expect(erl_epmd, address_please, fun