Skip to content

Commit 3bfb012

Browse files
committed
Comments and re-orient API around anonymous encryption
1 parent cd499e3 commit 3bfb012

File tree

8 files changed

+270
-363
lines changed

8 files changed

+270
-363
lines changed

keystore/admin_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package keystore_test
22

33
import (
4-
"context"
54
"fmt"
65
"sort"
76
"sync"
@@ -14,7 +13,7 @@ import (
1413
)
1514

1615
func TestKeystore_CreateDeleteReadKeys(t *testing.T) {
17-
ctx := context.Background()
16+
ctx := t.Context()
1817
type key struct {
1918
name string
2019
metadata []byte
@@ -161,7 +160,7 @@ func TestKeystore_CreateDeleteReadKeys(t *testing.T) {
161160
func TestKeystore_ConcurrentCreateAndRead(t *testing.T) {
162161
t.Parallel()
163162

164-
ctx := context.Background()
163+
ctx := t.Context()
165164
st := storage.NewMemoryStorage()
166165
ks, err := keystore.LoadKeystore(ctx, st, keystore.EncryptionParams{
167166
Password: "test",

0 commit comments

Comments
 (0)