test(proper): wait tcp port closed

This commit is contained in:
JianBo He 2021-04-15 20:21:24 +08:00
parent 9f088bcb7f
commit 04cbb3751d
1 changed files with 3 additions and 1 deletions

View File

@ -101,7 +101,9 @@ do_setup() ->
do_teardown(_) ->
ok = net_kernel:stop(),
ok = application:stop(gen_rpc),
ok = meck:unload(gen_rpc).
ok = meck:unload(gen_rpc),
%% wait for tcp close
timer:sleep(1500).
ensure_distributed_nodename() ->
case net_kernel:start([?NODENAME]) of