Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Feb 20, 2025
1 parent 85fe026 commit 6290e33
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015-2024, Benoit Chesneau <bchesneau@gmail.com>.
Copyright (c) 2015-2025, Benoit Chesneau <bchesneau@gmail.com>.
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion src/certifi.app.src
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{application, certifi,
[{description, "CA bundle adapted from Mozilla by https://certifi.io"},
{vsn, "2.13.0"},
{vsn, "2.14.0"},
{registered, []},
{applications, [kernel,stdlib]},
{env,[]},
Expand Down
8 changes: 4 additions & 4 deletions test/certifi_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ reproducible_module_test() ->

cacerts_test_() ->
Certs = [Cert1, Cert2, Cert3 | _] = certifi:cacerts(),
[?_assertEqual(147, length(Certs))
,?_assertMatch(<<48,130,5,179,48,130,3,155,160,3,2,1,2,2,16,33,156,84,45,232,_/binary>>, Cert1)
,?_assertMatch(<<48,130,2,66,48,130,1,201,160,3,2,1,2,2,16,54,58,150,140,_/binary>>, Cert2)
,?_assertMatch(<<48,130,5,108,48,130,3,84,160,3,2,1,2,2,20,84,22,191,59,_/binary>>, Cert3)
[?_assertEqual(150, length(Certs))
,?_assertMatch(<<48,130,5,169,48,130,3,145,160,3,2,1,2,2,16,105,38,9,126,128,_/binary>>, Cert1)
,?_assertMatch(<<48,130,5,169,48,130,3,145,160,3,2,1,2,2,16,115,59,48,4,72,_/binary>>, Cert2)
,?_assertMatch(<<48,130,2,35,48,130,1,169,160,3,2,1,2,2,20,22,21,199,195,216,_/binary>>, Cert3)
,?_assertMatch(<<48,130,3,117,48,130,2,93,160,3,2,1,2,2,11,4,0,0,0,0,1,21,75,90,195,148,48,13,6,_/binary>>, lists:last(Certs))
].

0 comments on commit 6290e33

Please sign in to comment.