Skip to content

Commit

Permalink
Remove self-contradicting test assertion
Browse files Browse the repository at this point in the history
This variable is named `goodResult`, implying that the verification
should be a success, but the assertion checks that the verification
should be a failure. The arguments to `verifyX5cRequirements` are the
same as above for the `result` variable with `badCert` above. This
code is probably a copy-paste error.
  • Loading branch information
emlun committed Jan 14, 2025
1 parent f818e7b commit 8906197
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2051,13 +2051,6 @@ class RelyingPartyRegistrationSpec
IllegalArgumentException
]

val goodResult = Try(
verifier.verifyX5cRequirements(badCert, testDataBase.aaguid)
)

goodResult shouldBe a[Failure[_]]
goodResult.failed.get shouldBe an[IllegalArgumentException]

verifier.verifyX5cRequirements(
testDataBase.packedAttestationCert,
testDataBase.aaguid,
Expand Down

0 comments on commit 8906197

Please sign in to comment.