aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/distribution_SUITE.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2019-03-18 15:06:02 +0100
committerLukas Larsson <[email protected]>2019-03-25 16:34:11 +0100
commit043d9e406fc0ffae447b245b853014c7c739b31d (patch)
treece464f8ae2346b986fea00c67dca2ce5691b9693 /erts/emulator/test/distribution_SUITE.erl
parentc0ca8209570b42bfbb029eb7e9ae8750a43fb739 (diff)
downloadotp-043d9e406fc0ffae447b245b853014c7c739b31d.tar.gz
otp-043d9e406fc0ffae447b245b853014c7c739b31d.tar.bz2
otp-043d9e406fc0ffae447b245b853014c7c739b31d.zip
erts: Always stop any testnodes before testcase exits
This needs to be done in order for automatic fd leak checking to work properly.
Diffstat (limited to 'erts/emulator/test/distribution_SUITE.erl')
-rw-r--r--erts/emulator/test/distribution_SUITE.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/test/distribution_SUITE.erl b/erts/emulator/test/distribution_SUITE.erl
index 516030ff82..32d53ec7cd 100644
--- a/erts/emulator/test/distribution_SUITE.erl
+++ b/erts/emulator/test/distribution_SUITE.erl
@@ -744,6 +744,7 @@ link_to_dead_new_node(Config) when is_list(Config) ->
{'EXIT', Pid, noproc} ->
ok;
Other ->
+ stop_node(Node),
ct:fail({unexpected_message, Other})
after 5000 ->
ct:fail(nothing_received)
@@ -1465,6 +1466,8 @@ measure_latency_large_message(Nodename, DataFun) ->
ct:pal("~p",[IndexTimes]),
+ stop_node(N),
+
case {lists:max(Times), lists:min(Times)} of
{Max, Min} when Max * 0.25 > Min ->
ct:fail({incorrect_latency, IndexTimes});