Skip to content

Commit

Permalink
Revive the CT test suite, make sure all tests pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlouis committed May 14, 2015
1 parent dd96431 commit 0de5cbd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 38 deletions.
33 changes: 0 additions & 33 deletions ct/test.config

This file was deleted.

15 changes: 10 additions & 5 deletions test/sv_SUITE.erl
Expand Up @@ -21,17 +21,22 @@ end_per_group(_Group, _Config) ->
ok.

init_per_suite(Config) ->
[ok = application:start(App) ||
App <- [syntax_tools, compiler, lager, safetyvalve]],
application:load(safetyvalve),
Queues = [
{test_queue_1_ets, [{hz, 1000}, {rate, 5}, {token_limit, 15}, {size, 60}, {concurrency, 3}]},
{test_queue_1_codel, [{hz, 200}, {rate, 1}, {token_limit, 15}, {size, 60}, {concurrency, 3},
{queue_type, {sv_codel, [5, 100]}}]}
],
application:set_env(safetyvalve, queues, Queues),
{ok, _Apps} = application:ensure_all_started(safetyvalve),
Config.

end_per_suite(_Config) ->
[ok = application:stop(App) ||
App <- lists:reverse([syntax_tools, compiler, lager, safetyvalve])],
application:stop(safetyvalve),
ok.

init_per_testcase(many_through_codel, Config) ->
sv_tracer:start_link(filename:join(?config(priv_dir, Config), "trace.out")),
%% sv_tracer:start_link(filename:join(?config(priv_dir, Config), "trace.out")),
Config;
init_per_testcase(not_applicable, Config) ->
dbg:tracer(),
Expand Down

0 comments on commit 0de5cbd

Please sign in to comment.