Skip to content

Commit df59570

Browse files
committed
Checks the type of cacerts/0 result.
1 parent 9b4a5e0 commit df59570

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/certifi_tests.erl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ reproducible_module_test() ->
1212
-endif.
1313

1414
cacerts_test_() ->
15+
%% Checking the contents is difficult because they change frequently.
16+
%% Therefore, this test only checks the number and type of certificates.
1517
Certs = certifi:cacerts(),
1618
[?_assertEqual(?NUM_OF_CERTS, length(Certs))
19+
,?_assert(lists:all(fun is_binary/1, Certs))
1720
].
1821

1922
cacerts_test_data_test_() ->

0 commit comments

Comments
 (0)