Skip to content

Commit

Permalink
fix: Minor issues found in PR revision
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberdi committed Jan 11, 2024
1 parent 26fddee commit 5a7d69b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
branches: [main]

env:
OTP-VERSION: 26.2.1
REBAR3-VERSION: 3.22.1

jobs:
Expand Down
4 changes: 2 additions & 2 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
dialyzer
]},
{test, [
{ct, "--sname nbully --spec test/conf/test.spec --cover --readable true"},
{cover, "-m 100"}
{ct, "--sname nbully --spec test/conf/test.spec --cover --readable true -v"},
{cover, "-m 95"}
]}
]}.

Expand Down
2 changes: 0 additions & 2 deletions test/conf/cover.conf

This file was deleted.

1 change: 0 additions & 1 deletion test/conf/test.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
%%% -*- mode:erlang -*-
{apps, [sasl, nbully]}.
2 changes: 1 addition & 1 deletion test/nbully_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ api_neg(_Conf) ->
Peers = start_peers(9),
{ok, Subscriber} = subscriber_srv:start(),
{Leader, _} = lists:max(Peers),
rpc:call(Leader, application, stop, [nbully]),
ok = rpc:call(Leader, application, stop, [nbully]),

timer:sleep(500),
NewLeader = nbully:leader(),
Expand Down
8 changes: 7 additions & 1 deletion test/nbully_wrk_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
%%% EXTERNAL EXPORTS
%%%-----------------------------------------------------------------------------
all() ->
[sys_calls].
[sys_calls, undefined_if_not_started].

%%%-----------------------------------------------------------------------------
%%% TEST CASES
Expand All @@ -35,3 +35,9 @@ sys_calls(_Conf) ->
ok = sys:resume(Pid),
unlink(Pid),
ok = nbully_wrk:stop().

undefined_if_not_started() ->
[{userdata, [{doc, "Tests not crashing if called with a non-started worker."}]}].

undefined_if_not_started(_Conf) ->
undefined = nbully_wrk:leader().

0 comments on commit 5a7d69b

Please sign in to comment.