1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-05 03:55:58 +01:00

Adjust expected test result (for self-signed root path)

This commit is contained in:
Heiko Schaefer 2023-07-17 01:12:00 +02:00
parent 75a514756b
commit 80a95684d8
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -698,10 +698,18 @@ class AuthenticateTest {
sp(q2, t.aliceFpr, t.aliceUid, listOf(Pair(90, listOf(t.aliceFpr))), null) sp(q2, t.aliceFpr, t.aliceUid, listOf(Pair(90, listOf(t.aliceFpr))), null)
// NOTE: original expectation from sequoia-wot:
// sp(q2, t.bobFpr, t.bobUid,
// listOf(Pair(90, listOf(t.bobFpr)),
// Pair(90, listOf(t.aliceFpr, t.bobFpr))), null)
// Our changed expectation: the order has changed because we return self-signed roots including the
// self-certification edge.
// This also happens to result in different ordering of the two paths, in this case.
sp(q2, t.bobFpr, t.bobUid, sp(q2, t.bobFpr, t.bobUid,
listOf(Pair(90, listOf(t.bobFpr)), listOf(Pair(90, listOf(t.aliceFpr, t.bobFpr)),
Pair(90, listOf(t.aliceFpr, t.bobFpr))), Pair(90, listOf(t.bobFpr))
null) ), null)
} }
@Test @Test