Skip to content

Commit

Permalink
unbreak test builds
Browse files Browse the repository at this point in the history
  • Loading branch information
snadrus committed Jul 11, 2024
1 parent 3b0fecd commit 12ba6f2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions chain/beacon/drand/drand_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ import (
"github.com/filecoin-project/go-state-types/network"

"github.com/filecoin-project/lotus/build"
"github.com/filecoin-project/lotus/build/buildconstants"
)

func TestPrintGroupInfo(t *testing.T) {
server := build.DrandConfigs[build.DrandTestnet].Servers[0]
chainInfo := build.DrandConfigs[build.DrandTestnet].ChainInfoJSON
server := build.DrandConfigs[buildconstants.DrandTestnet].Servers[0]
chainInfo := build.DrandConfigs[buildconstants.DrandTestnet].ChainInfoJSON

drandChain, err := dchain.InfoFromJSON(bytes.NewReader([]byte(chainInfo)))
assert.NoError(t, err)
Expand All @@ -37,7 +38,7 @@ func TestPrintGroupInfo(t *testing.T) {

func TestMaxBeaconRoundForEpoch(t *testing.T) {
todayTs := uint64(1652222222)
db, err := NewDrandBeacon(todayTs, build.BlockDelaySecs, nil, build.DrandConfigs[build.DrandTestnet])
db, err := NewDrandBeacon(todayTs, build.BlockDelaySecs, nil, build.DrandConfigs[buildconstants.DrandTestnet])
assert.NoError(t, err)
assert.True(t, db.IsChained())
mbr15 := db.MaxBeaconRoundForEpoch(network.Version15, 100)
Expand All @@ -47,7 +48,7 @@ func TestMaxBeaconRoundForEpoch(t *testing.T) {

func TestQuicknetIsChained(t *testing.T) {
todayTs := uint64(1652222222)
db, err := NewDrandBeacon(todayTs, build.BlockDelaySecs, nil, build.DrandConfigs[build.DrandQuicknet])
db, err := NewDrandBeacon(todayTs, build.BlockDelaySecs, nil, build.DrandConfigs[buildconstants.DrandQuicknet])
assert.NoError(t, err)
assert.False(t, db.IsChained())
}

0 comments on commit 12ba6f2

Please sign in to comment.