[java-idp-plugin-webauthn] branch main updated: Fix thread test
Phil Smart
philip.smart at jisc.ac.uk
Fri Apr 19 10:24:43 UTC 2024
This is an automated email from the git hooks/post-receive script.
philsmart pushed a commit to branch main
in repository java-idp-plugin-webauthn.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-webauthn.git;a=commit;h=37169fd803cf270867b1d598fbe2a3648c99fdf8
The following commit(s) were added to refs/heads/main by this push:
new 37169fd Fix thread test
37169fd is described below
commit 37169fd803cf270867b1d598fbe2a3648c99fdf8
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Fri Apr 19 11:24:37 2024 +0100
Fix thread test
---
.../storage/impl/IdPStorageServiceCredentialRespositoryTest.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/webauthn-impl/src/test/java/net/shibboleth/idp/plugin/authn/webauthn/storage/impl/IdPStorageServiceCredentialRespositoryTest.java b/webauthn-impl/src/test/java/net/shibboleth/idp/plugin/authn/webauthn/storage/impl/IdPStorageServiceCredentialRespositoryTest.java
index 6c2c89c..e1d182c 100644
--- a/webauthn-impl/src/test/java/net/shibboleth/idp/plugin/authn/webauthn/storage/impl/IdPStorageServiceCredentialRespositoryTest.java
+++ b/webauthn-impl/src/test/java/net/shibboleth/idp/plugin/authn/webauthn/storage/impl/IdPStorageServiceCredentialRespositoryTest.java
@@ -431,7 +431,10 @@ public class IdPStorageServiceCredentialRespositoryTest extends AbstractWebAuthn
final Collection<Future<Boolean>> futures = new ArrayList<>(3);
futures.add(service.submit(()->repo.addRegistrationByUsername("jdoe", registration)));
- futures.add(service.submit(()-> !repo.getRegistrationsByUsername("jdoe").isEmpty()));
+ futures.add(service.submit(()-> {
+ final var regs = repo.getRegistrationsByUsername("jdoe");
+ return regs.isEmpty() || regs.size() == 1 || regs.size() == 2;
+ }));
futures.add(service.submit(()->repo.addRegistrationByUsername("jdoe", registrationTwo)));
for (final Future<Boolean> f : futures) {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list