diff --git a/extern/sector-storage/sched_test.go b/extern/sector-storage/sched_test.go index d6368431593..849896ff6f1 100644 --- a/extern/sector-storage/sched_test.go +++ b/extern/sector-storage/sched_test.go @@ -592,8 +592,8 @@ func TestWindowCompact(t *testing.T) { } sw := schedWorker{ - sched: &sh, - worker: wh, + sched: &sh, + worker: wh, } sw.workerCompactWindows() diff --git a/storage/wdpost_run_test.go b/storage/wdpost_run_test.go index 6c05f806f05..da19bcabddd 100644 --- a/storage/wdpost_run_test.go +++ b/storage/wdpost_run_test.go @@ -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" @@ -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 { }