aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2019-07-04 20:12:00 +0200
committerRickard Green <[email protected]>2019-07-08 11:08:34 +0200
commit1651bd5f6053c73129a38b6df5a8a130d2564e5b (patch)
treeecb188c03f5baf09ab5394e44e86ff585dda654f
parent91b25395276b2cb2467087133b57fbac795fde97 (diff)
downloadotp-1651bd5f6053c73129a38b6df5a8a130d2564e5b.tar.gz
otp-1651bd5f6053c73129a38b6df5a8a130d2564e5b.tar.bz2
otp-1651bd5f6053c73129a38b6df5a8a130d2564e5b.zip
Fix unstable node_container_SUITE:node_controller_refc test
-rw-r--r--erts/emulator/test/node_container_SUITE.erl12
1 files changed, 11 insertions, 1 deletions
diff --git a/erts/emulator/test/node_container_SUITE.erl b/erts/emulator/test/node_container_SUITE.erl
index 8e9e3cb05a..d77d442ef0 100644
--- a/erts/emulator/test/node_container_SUITE.erl
+++ b/erts/emulator/test/node_container_SUITE.erl
@@ -583,7 +583,17 @@ node_controller_refc(Config) when is_list(Config) ->
wait_until(fun () -> not is_process_alive(P) end),
lists:foreach(fun (Proc) -> garbage_collect(Proc) end, processes()),
false = get_node_references({Node,Creation}),
- false = get_dist_references(Node),
+ wait_until(fun () ->
+ case get_dist_references(Node) of
+ false ->
+ true;
+ [{{system,thread_progress_delete_timer},
+ [{system,1}]}] ->
+ false;
+ Other ->
+ ct:fail(Other)
+ end
+ end),
false = lists:member(Node, nodes(known)),
nc_refc_check(node()),
erts_debug:set_internal_state(node_tab_delayed_delete, -1), %% restore original value