diff options
author | Ahmed Omar <[email protected]> | 2010-12-16 11:45:10 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2010-12-29 18:33:09 +0100 |
commit | 50d40fd0bf6c796e7acf20fc2ca377cfca734251 (patch) | |
tree | 7cf0ce4afc856f17de3f3a7c59be4177e37940f3 /lib/percept/test | |
parent | 99e34bba1a60b262e24496cc9288b549360c6377 (diff) | |
download | otp-50d40fd0bf6c796e7acf20fc2ca377cfca734251.tar.gz otp-50d40fd0bf6c796e7acf20fc2ca377cfca734251.tar.bz2 otp-50d40fd0bf6c796e7acf20fc2ca377cfca734251.zip |
Fixes a bug found in percept:stop_webserver/1, where it doesn't stop the webserver completely
percept:stop_webserver/1 will only stop the httpd service in inets, but not the percept_httpd process. As a result, when trying to start the webserver again it will return {error, already_started}. Test case was updated to simulate this case and fix is included to stop the webserver in a consistent way wether stop_webserver/0 or stop_webserver/1 was used.
Diffstat (limited to 'lib/percept/test')
-rw-r--r-- | lib/percept/test/percept_SUITE.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/percept/test/percept_SUITE.erl b/lib/percept/test/percept_SUITE.erl index ff7cccdaa8..803ce6b95f 100644 --- a/lib/percept/test/percept_SUITE.erl +++ b/lib/percept/test/percept_SUITE.erl @@ -70,6 +70,8 @@ webserver(Config) when is_list(Config) -> % Explicit start inets? ?line {started, _, Port} = percept:start_webserver(), ?line ok = percept:stop_webserver(Port), + ?line {started, _, NewPort} = percept:start_webserver(), + ?line ok = percept:stop_webserver(NewPort), ?line application:stop(inets), ok. |