This commit is contained in:
Łukasz Magiera 2022-06-15 12:31:02 +02:00
parent 25d848f718
commit 6d770f6e10
3 changed files with 9 additions and 9 deletions

View File

@ -10,11 +10,11 @@ import (
"github.com/google/uuid"
blocks "github.com/ipfs/go-block-format"
"github.com/ipfs/go-cid"
metrics "github.com/libp2p/go-libp2p-core/metrics"
"github.com/libp2p/go-libp2p-core/metrics"
"github.com/libp2p/go-libp2p-core/network"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/libp2p/go-libp2p-core/protocol"
xerrors "golang.org/x/xerrors"
"golang.org/x/xerrors"
"github.com/filecoin-project/go-address"
"github.com/filecoin-project/go-bitfield"
@ -42,7 +42,7 @@ import (
"github.com/filecoin-project/lotus/storage/pipeline/sealiface"
"github.com/filecoin-project/lotus/storage/sealer/fsutil"
"github.com/filecoin-project/lotus/storage/sealer/sealtasks"
storiface "github.com/filecoin-project/lotus/storage/sealer/storiface"
"github.com/filecoin-project/lotus/storage/sealer/storiface"
)
var ErrNotSupported = xerrors.New("method not supported")

View File

@ -8,7 +8,7 @@ import (
"github.com/filecoin-project/go-address"
"github.com/filecoin-project/go-state-types/abi"
big "github.com/filecoin-project/go-state-types/big"
"github.com/filecoin-project/go-state-types/big"
"github.com/filecoin-project/go-state-types/cbor"
ipldcbor "github.com/ipfs/go-ipld-cbor"

View File

@ -637,16 +637,16 @@ func TestPaychGetRestartAfterAddFundsMsg(t *testing.T) {
require.NoError(t, mgr.Stop())
// Create a new manager with the same datastore
mock := newMockManagerAPI()
defer mock.close()
mock2 := newMockManagerAPI()
defer mock2.close()
mock.setPaychState(ch, act, paychmock.NewMockPayChState(from, to, abi.ChainEpoch(0), make(map[uint64]paych.LaneState)))
mock2.setPaychState(ch, act, paychmock.NewMockPayChState(from, to, abi.ChainEpoch(0), make(map[uint64]paych.LaneState)))
mgr2, err := newManager(store, mock)
mgr2, err := newManager(store, mock2)
require.NoError(t, err)
// Send success add funds response
mock.receiveMsgResponse(mcid2, types.MessageReceipt{
mock2.receiveMsgResponse(mcid2, types.MessageReceipt{
ExitCode: 0,
Return: []byte{},
})