aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/test
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2012-12-19 14:07:25 +0100
committerSiri Hansen <[email protected]>2012-12-19 14:07:25 +0100
commitf6eb49df376b56f746c2e74d8cf159261aee5464 (patch)
tree6e2c7f608c1edb94767f0a569da0f988e5c2d0d8 /lib/tools/test
parentc1ecd14be890ec4f2e8a25f00525412a381fcc72 (diff)
downloadotp-f6eb49df376b56f746c2e74d8cf159261aee5464.tar.gz
otp-f6eb49df376b56f746c2e74d8cf159261aee5464.tar.bz2
otp-f6eb49df376b56f746c2e74d8cf159261aee5464.zip
[cover] Fix timing dependent bug in cover_SUITE:reconnect
Adding a timer:sleep between these two lines: net_kernel:disconnect(N1), [] = cover:which_nodes(), This is to make sure the disconnect is detected by cover before checking that the node is gone.
Diffstat (limited to 'lib/tools/test')
-rw-r--r--lib/tools/test/cover_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tools/test/cover_SUITE.erl b/lib/tools/test/cover_SUITE.erl
index 9d2b449460..ef3daef173 100644
--- a/lib/tools/test/cover_SUITE.erl
+++ b/lib/tools/test/cover_SUITE.erl
@@ -450,8 +450,8 @@ reconnect(Config) ->
%% Disconnect and check that node is removed from main cover node
net_kernel:disconnect(N1),
+ timer:sleep(500), % allow some to detect disconnect and for f:f2() call
[] = cover:which_nodes(),
- timer:sleep(500), % allow some time for the f:f2() call
%% Do some add one module (b) and remove one module (a)
code:purge(a),