diff options
Diffstat (limited to 'swarm/pss/client/client_test.go')
-rw-r--r-- | swarm/pss/client/client_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/swarm/pss/client/client_test.go b/swarm/pss/client/client_test.go index cfef3c794..8f2f0e805 100644 --- a/swarm/pss/client/client_test.go +++ b/swarm/pss/client/client_test.go @@ -252,7 +252,13 @@ func newServices() adapters.Services { ctxlocal, cancel := context.WithTimeout(context.Background(), time.Second) defer cancel() keys, err := wapi.NewKeyPair(ctxlocal) + if err != nil { + return nil, err + } privkey, err := w.GetPrivateKey(keys) + if err != nil { + return nil, err + } psparams := pss.NewPssParams().WithPrivateKey(privkey) pskad := kademlia(ctx.Config.ID) ps, err := pss.NewPss(pskad, psparams) |