Browse Source

only run end_static_dir for http and https

Magnus Klaar 13 years ago
parent
commit
1592adcd4e
1 changed files with 4 additions and 2 deletions
  1. 4 2
      test/http_SUITE.erl

+ 4 - 2
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.