diff options
author | Sverker Eriksson <[email protected]> | 2018-07-12 16:45:39 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2018-07-12 16:45:39 +0200 |
commit | adb0b077e7ee5b0d9b140bb985b56a43d82927cd (patch) | |
tree | 4cc960e604c88705bfcce0f240c4132a6ac6e26d /lib/kernel/test | |
parent | 97626fffd082904576efbdad3e437720525d5fc2 (diff) | |
parent | c4759bc60c8e5db27c070b9e826ddc0f9626b094 (diff) | |
download | otp-adb0b077e7ee5b0d9b140bb985b56a43d82927cd.tar.gz otp-adb0b077e7ee5b0d9b140bb985b56a43d82927cd.tar.bz2 otp-adb0b077e7ee5b0d9b140bb985b56a43d82927cd.zip |
Merge PR-1870 from sverker/kernel/connect-to-self/ERL-643/OTP-15182
Fix net_kernel:connect_node/1 to local node
Diffstat (limited to 'lib/kernel/test')
-rw-r--r-- | lib/kernel/test/erl_distribution_SUITE.erl | 8 |
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)), |