Skip to content

Commit cdbbbec

Browse files
Loïc Hoguinmergify[bot]
authored andcommitted
Fix pkix_test_data code based on PR feedback
(cherry picked from commit a3e63d5)
1 parent 6cc98ae commit cdbbbec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deps/rabbitmq_trust_store/test/system_SUITE.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,15 +332,15 @@ validate_longer_chain1(Config) ->
332332

333333
TestDataTrusted = public_key:pkix_test_data(#{
334334
root => [],
335-
intermediaries => [[{key, KeyInter}]],
335+
intermediates => [[{key, KeyInterDec}]],
336336
peer => []
337337
}),
338338
CertTrusted = proplists:get_value(cert, TestDataTrusted),
339339
KeyTrusted = proplists:get_value(key, TestDataTrusted),
340-
[CertInter, RootCA] = proplists:get_value(cacerts, TestDataTrusted),
340+
[RootCA, CertInter, RootCA] = proplists:get_value(cacerts, TestDataTrusted),
341341

342342
TestDataUntrusted = public_key:pkix_test_data(#{
343-
root => [#{cert => CertInter, key => KeyInter}],
343+
root => #{cert => CertInter, key => KeyInterDec},
344344
peer => []
345345
}),
346346
CertUntrusted = proplists:get_value(cert, TestDataUntrusted),

0 commit comments

Comments
 (0)