Skip to content

Commit

Permalink
poke v3 (#2)
Browse files Browse the repository at this point in the history
* poke v3
* fix lint
  • Loading branch information
skandragon authored Dec 14, 2023
1 parent 0c9f98d commit e0b4246
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-and-poke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
ref: ${{ github.ref_name }}
persist-credentials: false
- name: prod proxy
run: GOPROXY=proxy.golang.org go list -m github.com/${{ github.repository }}/v2@${{ github.ref_name }}
run: GOPROXY=proxy.golang.org go list -m github.com/${{ github.repository }}/v3@${{ github.ref_name }}
13 changes: 11 additions & 2 deletions registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ import (

func GenerateSymmetricKey() []byte {
sharedKey := make([]byte, 64)
rand.Read(sharedKey)
n, err := rand.Read(sharedKey)
if err != nil {
log.Fatalln(err)
}
if n != len(sharedKey) {
log.Fatal("rand.Rand did not return the correct number of bytes")
}
return sharedKey
}

Expand All @@ -53,7 +59,10 @@ func TestRegister(t *testing.T) {
if err != nil {
log.Fatalf("cannot generate key: %v", err)
}
keyset.AddKey(key)
err = keyset.AddKey(key)
if err != nil {
log.Fatalf("cannot add key: %v", err)
}

type args struct {
purpose string
Expand Down

0 comments on commit e0b4246

Please sign in to comment.