aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2014-09-24 14:20:58 +0200
committerSiri Hansen <[email protected]>2014-09-24 14:20:58 +0200
commit8f6cff800da3161e41ee43437e1d074b66b68dd3 (patch)
treeefe5f4a3e98016d4e93b221f845b0404e006b600 /lib/common_test
parentbca562455e1e8cb8be5a5a5de53c926eba51f977 (diff)
downloadotp-8f6cff800da3161e41ee43437e1d074b66b68dd3.tar.gz
otp-8f6cff800da3161e41ee43437e1d074b66b68dd3.tar.bz2
otp-8f6cff800da3161e41ee43437e1d074b66b68dd3.zip
[ct test] Explicitly unregister event receiver to avoid badarg
... when two tests are run within the same test case.
Diffstat (limited to 'lib/common_test')
-rw-r--r--lib/common_test/test/ct_test_support.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/common_test/test/ct_test_support.erl b/lib/common_test/test/ct_test_support.erl
index 2e2b45d59f..746469584d 100644
--- a/lib/common_test/test/ct_test_support.erl
+++ b/lib/common_test/test/ct_test_support.erl
@@ -481,6 +481,7 @@ er_loop(Evs) ->
From ! {event_receiver,lists:reverse(Evs)},
er_loop(Evs);
stop ->
+ unregister(event_receiver),
ok
end.