Skip to content

Commit

Permalink
make tests work with Security Key
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamVe committed Aug 30, 2024
1 parent 65ce3a0 commit a8487bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void getYubiKey() throws InterruptedException {
if (deviceInfo.getVersion().major == 0) {
SessionVersionOverride.set(new Version(5, 7, 2));
}
} catch (IOException ignored) {
} catch (IOException | IllegalStateException ignored) {
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ protected OathTestState(OathTestState.Builder builder) throws Throwable {
}

try (SmartCardConnection connection = openSmartCardConnection()) {
assumeTrue("Smart card not available", connection != null);

OathSession oath = getOathSession(connection, scpParameters);

assumeTrue("OATH not available", oath != null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ protected OpenPgpTestState(OpenPgpTestState.Builder builder) throws Throwable {
}

try (SmartCardConnection connection = openSmartCardConnection()) {
assumeTrue("Smart card not available", connection != null);

OpenPgpSession openPgp = getOpenPgpSession(connection, scpParameters);

assumeTrue("OpenPGP not available", openPgp != null);
Expand Down

0 comments on commit a8487bb

Please sign in to comment.