Browse Source

Use init_per_suite instead of all/0 for init in tracer_SUITE

Loïc Hoguin 1 year ago
parent
commit
ca6477af7b
1 changed files with 7 additions and 1 deletions
  1. 7 1
      test/tracer_SUITE.erl

+ 7 - 1
test/tracer_SUITE.erl

@@ -29,9 +29,15 @@ suite() ->
 %% We initialize trace patterns here. Appropriate would be in
 %% init_per_suite/1, but this works just as well.
 all() ->
-	cowboy_tracer_h:set_trace_patterns(),
 	cowboy_test:common_all().
 
+init_per_suite(Config) ->
+	cowboy_tracer_h:set_trace_patterns(),
+	Config.
+
+end_per_suite(_) ->
+	ok.
+
 %% We want tests for each group to execute sequentially
 %% because we need to modify the protocol options. Groups
 %% can run in parallel however.