Skip to content

Commit

Permalink
fix: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
simlecode committed Aug 11, 2023
1 parent 7cc0148 commit 9487001
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions models/badger/retrieval_deal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,17 @@ import (
"github.com/filecoin-project/go-fil-markets/retrievalmarket"
types "github.com/filecoin-project/venus/venus-shared/types/market"
"github.com/ipfs-force-community/droplet/v2/models/repo"
selectorparse "github.com/ipld/go-ipld-prime/traversal/selector/parse"
"github.com/libp2p/go-libp2p/core/peer"
cbg "github.com/whyrusleeping/cbor-gen"

"github.com/filecoin-project/venus/venus-shared/testutil"
"github.com/stretchr/testify/assert"
)

func init() {
testutil.MustRegisterDefaultValueProvier(func(t *testing.T) *cbg.Deferred {
return &cbg.Deferred{
Raw: make([]byte, 1),
}
testutil.MustRegisterDefaultValueProvier(func(t *testing.T) retrievalmarket.CborGenCompatibleNode {
allSelector := selectorparse.CommonSelector_ExploreAllRecursively
return retrievalmarket.CborGenCompatibleNode{Node: allSelector}
})
}

Expand Down

0 comments on commit 9487001

Please sign in to comment.