aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMagnus Klaar <[email protected]>2012-01-05 00:57:02 +0100
committerMagnus Klaar <[email protected]>2012-01-05 01:01:03 +0100
commit1592adcd4e3c8b596b499eaf14f1aeb6abfca58d (patch)
tree79cbeacf2ad694bc6774a5c04709a03957e88e81 /test
parent54d16c14ad4e91489a297d4bd4031d2b546d7963 (diff)
downloadcowboy-1592adcd4e3c8b596b499eaf14f1aeb6abfca58d.tar.gz
cowboy-1592adcd4e3c8b596b499eaf14f1aeb6abfca58d.tar.bz2
cowboy-1592adcd4e3c8b596b499eaf14f1aeb6abfca58d.zip
only run end_static_dir for http and https
Diffstat (limited to 'test')
-rw-r--r--test/http_SUITE.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl
index 9539297..ffb0beb 100644
--- a/test/http_SUITE.erl
+++ b/test/http_SUITE.erl
@@ -102,9 +102,11 @@ end_per_group(https, Config) ->
application:stop(crypto),
end_static_dir(Config),
ok;
-end_per_group(Listener, Config) ->
+end_per_group(http, Config) ->
+ cowboy:stop_listener(http),
+ end_static_dir(Config);
+end_per_group(Listener, _Config) ->
cowboy:stop_listener(Listener),
- end_static_dir(Config),
ok.
%% Dispatch configuration.