test: drand: switch tests to drand testnet (from devnet) (#11359)
At the request of the drand team.
This commit is contained in:
parent
8bb6d423ff
commit
48a3076876
@ -17,7 +17,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestPrintGroupInfo(t *testing.T) {
|
func TestPrintGroupInfo(t *testing.T) {
|
||||||
server := build.DrandConfigs[build.DrandDevnet].Servers[0]
|
server := build.DrandConfigs[build.DrandTestnet].Servers[0]
|
||||||
c, err := hclient.New(server, nil, nil)
|
c, err := hclient.New(server, nil, nil)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
cg := c.(interface {
|
cg := c.(interface {
|
||||||
@ -31,7 +31,7 @@ func TestPrintGroupInfo(t *testing.T) {
|
|||||||
|
|
||||||
func TestMaxBeaconRoundForEpoch(t *testing.T) {
|
func TestMaxBeaconRoundForEpoch(t *testing.T) {
|
||||||
todayTs := uint64(1652222222)
|
todayTs := uint64(1652222222)
|
||||||
db, err := NewDrandBeacon(todayTs, build.BlockDelaySecs, nil, build.DrandConfigs[build.DrandDevnet])
|
db, err := NewDrandBeacon(todayTs, build.BlockDelaySecs, nil, build.DrandConfigs[build.DrandTestnet])
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
mbr15 := db.MaxBeaconRoundForEpoch(network.Version15, 100)
|
mbr15 := db.MaxBeaconRoundForEpoch(network.Version15, 100)
|
||||||
mbr16 := db.MaxBeaconRoundForEpoch(network.Version16, 100)
|
mbr16 := db.MaxBeaconRoundForEpoch(network.Version16, 100)
|
||||||
|
Loading…
Reference in New Issue
Block a user