Skip to content

Commit

Permalink
fix TestWDPostDoPost
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Oct 28, 2020
1 parent ed2f81d commit e0f7b19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extern/sector-storage/sched_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,8 @@ func TestWindowCompact(t *testing.T) {
}

sw := schedWorker{
sched: &sh,
worker: wh,
sched: &sh,
worker: wh,
}

sw.workerCompactWindows()
Expand Down
6 changes: 6 additions & 0 deletions storage/wdpost_run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package storage
import (
"bytes"
"context"
"github.com/filecoin-project/go-state-types/network"
"github.com/filecoin-project/lotus/build"
"testing"

"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -91,6 +93,10 @@ func (m *mockStorageMinerAPI) StateWaitMsg(ctx context.Context, cid cid.Cid, con
}, nil
}

func (m *mockStorageMinerAPI) StateNetworkVersion(context.Context, types.TipSetKey) (network.Version, error) {
return build.NewestNetworkVersion, nil
}

type mockProver struct {
}

Expand Down

0 comments on commit e0f7b19

Please sign in to comment.