aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/supervisor_bridge_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-02-28 13:40:18 +0100
committerBjörn Gustavsson <[email protected]>2016-03-09 13:20:00 +0100
commit22785cd1e21600365e71fb0bd2835e5b53de8764 (patch)
tree3f8a1a9fe9c138ef89fde4c763a1bc0e2ae704f7 /lib/stdlib/test/supervisor_bridge_SUITE.erl
parente59b1c5ad43c010e6d7dd3d2eabc10df156fcc61 (diff)
downloadotp-22785cd1e21600365e71fb0bd2835e5b53de8764.tar.gz
otp-22785cd1e21600365e71fb0bd2835e5b53de8764.tar.bz2
otp-22785cd1e21600365e71fb0bd2835e5b53de8764.zip
Eliminate use of test_server:messages_get/0
Diffstat (limited to 'lib/stdlib/test/supervisor_bridge_SUITE.erl')
-rw-r--r--lib/stdlib/test/supervisor_bridge_SUITE.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/stdlib/test/supervisor_bridge_SUITE.erl b/lib/stdlib/test/supervisor_bridge_SUITE.erl
index 768ff77be5..be1bf82864 100644
--- a/lib/stdlib/test/supervisor_bridge_SUITE.erl
+++ b/lib/stdlib/test/supervisor_bridge_SUITE.erl
@@ -183,7 +183,12 @@ badstart(Config) when is_list(Config) ->
(catch supervisor_bridge:start_link({local,"foo"},?MODULE,1)),
?line {'EXIT',_} =
(catch supervisor_bridge:start_link(?bridge_name,?MODULE,1)),
- ?line [] = test_server:messages_get(), % No messages waiting
+ receive
+ Msg ->
+ ct:fail({unexpected,Msg})
+ after 1 ->
+ ok
+ end,
%% Already started.