diff options
author | Björn Gustavsson <[email protected]> | 2016-02-28 13:40:18 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-03-09 13:20:00 +0100 |
commit | 22785cd1e21600365e71fb0bd2835e5b53de8764 (patch) | |
tree | 3f8a1a9fe9c138ef89fde4c763a1bc0e2ae704f7 /lib/stdlib/test/gen_server_SUITE.erl | |
parent | e59b1c5ad43c010e6d7dd3d2eabc10df156fcc61 (diff) | |
download | otp-22785cd1e21600365e71fb0bd2835e5b53de8764.tar.gz otp-22785cd1e21600365e71fb0bd2835e5b53de8764.tar.bz2 otp-22785cd1e21600365e71fb0bd2835e5b53de8764.zip |
Eliminate use of test_server:messages_get/0
Diffstat (limited to 'lib/stdlib/test/gen_server_SUITE.erl')
-rw-r--r-- | lib/stdlib/test/gen_server_SUITE.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/stdlib/test/gen_server_SUITE.erl b/lib/stdlib/test/gen_server_SUITE.erl index 72457628ad..f108933eb0 100644 --- a/lib/stdlib/test/gen_server_SUITE.erl +++ b/lib/stdlib/test/gen_server_SUITE.erl @@ -234,7 +234,10 @@ start(Config) when is_list(Config) -> after 5000 -> ct:fail(not_stopped) end, - test_server:messages_get(), + receive + Msg -> ct:fail({unexpected,Msg}) + after 1 -> ok + end, process_flag(trap_exit, OldFl), ok. @@ -1154,7 +1157,6 @@ error_format_status(Config) when is_list(Config) -> ?line io:format("Unexpected: ~p", [Other]), ct:fail(failed) end, - ?t:messages_get(), process_flag(trap_exit, OldFl), ok. @@ -1181,7 +1183,6 @@ terminate_crash_format(Config) when is_list(Config) -> io:format("Timeout: expected error logger msg", []), ct:fail(failed) end, - ?t:messages_get(), process_flag(trap_exit, OldFl), ok. |