aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-07-10 17:51:23 +0200
committerSverker Eriksson <[email protected]>2018-07-10 17:51:23 +0200
commitc4759bc60c8e5db27c070b9e826ddc0f9626b094 (patch)
tree1e2d24a97fbe84eabe5fb41d503a6076230e2b1c /lib/kernel/test
parenta0ae44f324576104760a63fe6cf63e0ca31756fc (diff)
downloadotp-c4759bc60c8e5db27c070b9e826ddc0f9626b094.tar.gz
otp-c4759bc60c8e5db27c070b9e826ddc0f9626b094.tar.bz2
otp-c4759bc60c8e5db27c070b9e826ddc0f9626b094.zip
kernel: Fix net_kernel:connect_node/1 to local node
to be no-op and return true as it always has before OTP-21.0.
Diffstat (limited to 'lib/kernel/test')
-rw-r--r--lib/kernel/test/erl_distribution_SUITE.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/kernel/test/erl_distribution_SUITE.erl b/lib/kernel/test/erl_distribution_SUITE.erl
index 9c6712ad74..0e13f0383e 100644
--- a/lib/kernel/test/erl_distribution_SUITE.erl
+++ b/lib/kernel/test/erl_distribution_SUITE.erl
@@ -25,6 +25,7 @@
init_per_group/2,end_per_group/2]).
-export([tick/1, tick_change/1,
+ connect_node/1,
nodenames/1, hostnames/1,
illegal_nodenames/1, hidden_node/1,
setopts/1,
@@ -70,6 +71,7 @@ suite() ->
all() ->
[tick, tick_change, nodenames, hostnames, illegal_nodenames,
+ connect_node,
hidden_node, setopts,
table_waste, net_setuptime, inet_dist_options_options,
{group, monitor_nodes}].
@@ -106,6 +108,12 @@ init_per_testcase(Func, Config) when is_atom(Func), is_list(Config) ->
end_per_testcase(_Func, _Config) ->
ok.
+connect_node(Config) when is_list(Config) ->
+ Connected = nodes(connected),
+ true = net_kernel:connect_node(node()),
+ Connected = nodes(connected),
+ ok.
+
tick(Config) when is_list(Config) ->
PaDir = filename:dirname(code:which(erl_distribution_SUITE)),