Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Vogel <[email protected]>
  • Loading branch information
stv0g committed Nov 8, 2023
1 parent da55528 commit 70b4f23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ if err != nil {
// ...
}

var newKey [24]byte
var newKey ManagementKey
if _, err := io.ReadFull(rand.Reader, newKey[:]); err != nil {
// ...
}
Expand Down Expand Up @@ -294,17 +294,17 @@ Non-YubiKey smart cards that implement the PIV standard are not officially suppo
## Testing

Tests automatically find connected available YubiKeys, but won't modify the
smart card without the `--reset-card` flag. To let the tests modify your
smart card without the `TEST_DANGEROUS_WIPE_REAL_CARD=1` environment variable is set. To let the tests modify your
YubiKey's PIV applet, run:

```shell
go test -v ./piv --reset-card
TEST_DANGEROUS_WIPE_REAL_CARD=1 go test -v ./piv
```

Longer tests can be skipped with the `--test.short` flag.

```shell
go test -v --short ./piv --reset-card
TEST_DANGEROUS_WIPE_REAL_CARD=1 go test -v --short ./piv
```

## Why?
Expand Down

0 comments on commit 70b4f23

Please sign in to comment.