Skip to content

Commit

Permalink
Use existing trusted info for drand client test (#11666)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg authored Mar 1, 2024
1 parent 51b19a6 commit 7b91159
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion chain/beacon/drand/drand_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package drand

import (
"bytes"
"context"
"os"
"testing"
Expand All @@ -18,7 +19,12 @@ import (

func TestPrintGroupInfo(t *testing.T) {
server := build.DrandConfigs[build.DrandTestnet].Servers[0]
c, err := hclient.New(server, nil, nil)
chainInfo := build.DrandConfigs[build.DrandTestnet].ChainInfoJSON

drandChain, err := dchain.InfoFromJSON(bytes.NewReader([]byte(chainInfo)))
assert.NoError(t, err)
c, err := hclient.NewWithInfo(server, drandChain, nil)

assert.NoError(t, err)
cg := c.(interface {
FetchChainInfo(ctx context.Context, groupHash []byte) (*dchain.Info, error)
Expand Down

0 comments on commit 7b91159

Please sign in to comment.