Skip to content

Commit 1f0a741

Browse files
committed
Remove self-contradicting test assertion
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`. This code is probably a copy-paste error.
1 parent f818e7b commit 1f0a741

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

webauthn-server-core/src/test/scala/com/yubico/webauthn/RelyingPartyRegistrationSpec.scala

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2051,13 +2051,6 @@ class RelyingPartyRegistrationSpec
20512051
IllegalArgumentException
20522052
]
20532053

2054-
val goodResult = Try(
2055-
verifier.verifyX5cRequirements(badCert, testDataBase.aaguid)
2056-
)
2057-
2058-
goodResult shouldBe a[Failure[_]]
2059-
goodResult.failed.get shouldBe an[IllegalArgumentException]
2060-
20612054
verifier.verifyX5cRequirements(
20622055
testDataBase.packedAttestationCert,
20632056
testDataBase.aaguid,

0 commit comments

Comments
 (0)