mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-05 12:05:58 +01:00
Adjust expected test result (for self-signed root path)
This commit is contained in:
parent
75a514756b
commit
80a95684d8
1 changed files with 11 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue