Skip to content

Commit d04ce99

Browse files
committed
Drop no-op maps:remove in get_policy_missing_org_test
?CONFIG never sets repo_organization, so removing it was misleading. Use ?CONFIG directly — the absence of the key is what the test exercises.
1 parent a38a412 commit d04ce99

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/hex_repo_SUITE.erl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ get_policy_test(_Config) ->
7979
ok.
8080

8181
get_policy_missing_org_test(_Config) ->
82-
Config = maps:remove(repo_organization, ?CONFIG),
83-
{error, missing_repo_organization} = hex_repo:get_policy(Config, <<"strict-prod">>),
82+
{error, missing_repo_organization} = hex_repo:get_policy(?CONFIG, <<"strict-prod">>),
8483
ok.
8584

8685
get_tarball_test(_Config) ->

0 commit comments

Comments
 (0)