Skip to content

Commit e92f7ec

Browse files
committed
Fix regeneration of RegistrationTestData.assertion
This was broken in commit 8474644 because the `copy` method is no longer used, so `this.assertion` is no longer copied into `newValue`, and therefore `newValue.assertion` is always `None` in this `.map` call. The fix is to call `.map` on `this.assertion` (which is still the old value, which may be `Some`) instead of on `newValue.assertion` (which is always `None`).
1 parent 8474644 commit e92f7ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ case class RegistrationTestData(
911911
val newValue =
912912
RegistrationTestData.from(credential, keypair, attestationCertChain)
913913
newValue.copy(
914-
assertion = newValue.assertion.map(_.regenerate(newValue))
914+
assertion = assertion.map(_.regenerate(newValue))
915915
)
916916
})
917917

0 commit comments

Comments
 (0)