Skip to content

Commit 02596ad

Browse files
author
Denys Gonchar
committed
test
1 parent 06bb385 commit 02596ad

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
otp-version: ${{ matrix.otp_vsn }}
2424
rebar3-version: ${{ matrix.rebar_vsn }}
2525
- if: matrix.test-type == 'regular'
26-
run: make test
26+
run: make test SUITE=throttle_SUITE
2727
- if: matrix.test-type == 'regular'
2828
name: Upload coverage reports to Codecov
2929
uses: codecov/codecov-action@v3

test/throttle_SUITE.erl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
all() ->
1212
[
13-
{group, api},
14-
{group, properties}
13+
{group, properties},
14+
{group, api}
1515
].
1616

1717
groups() ->
@@ -65,6 +65,7 @@ groups() ->
6565
].
6666

6767
init_per_suite(Config) ->
68+
meck:new(amoc_throttle_config, [passthrough, non_strict, no_link]),
6869
application:ensure_all_started(amoc),
6970
amoc_cluster:set_master_node(node()),
7071
TelemetryEvents = [[amoc, throttle, Event] || Event <- [init, rate, request, execute, process]],
@@ -74,17 +75,17 @@ init_per_suite(Config) ->
7475
end_per_suite(_) ->
7576
application:stop(amoc),
7677
telemetry_helpers:stop(),
78+
meck:unload(amoc_throttle_config);
7779
ok.
7880

7981
init_per_group(properties, Config) ->
80-
meck:new(amoc_throttle_config, [passthrough, non_strict, no_link]),
8182
meck:expect(amoc_throttle_config, no_of_processes, [], 100),
8283
Config;
8384
init_per_group(_, Config) ->
8485
Config.
8586

8687
end_per_group(properties, _Config) ->
87-
meck:unload(amoc_throttle_config);
88+
meck:delete(amoc_throttle_config, no_of_processes, 0);
8889
end_per_group(_, _Config) ->
8990
ok.
9091

0 commit comments

Comments
 (0)