From 8f6cff800da3161e41ee43437e1d074b66b68dd3 Mon Sep 17 00:00:00 2001 From: Siri Hansen Date: Wed, 24 Sep 2014 14:20:58 +0200 Subject: [ct test] Explicitly unregister event receiver to avoid badarg ... when two tests are run within the same test case. --- lib/common_test/test/ct_test_support.erl | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/common_test/test') 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. -- cgit v1.2.3