From 4100f6eeadabd73c7d24ab167e9f2ca4cdf53c6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Wed, 28 Oct 2020 15:10:43 +0100 Subject: [PATCH] fix TestWDPostDoPost --- extern/sector-storage/sched_test.go | 4 ++-- storage/wdpost_run_test.go | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) 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..a76483a5f09 100644 --- a/storage/wdpost_run_test.go +++ b/storage/wdpost_run_test.go @@ -16,12 +16,14 @@ import ( "github.com/filecoin-project/go-state-types/big" "github.com/filecoin-project/go-state-types/crypto" "github.com/filecoin-project/go-state-types/dline" + "github.com/filecoin-project/go-state-types/network" builtin2 "github.com/filecoin-project/specs-actors/v2/actors/builtin" miner2 "github.com/filecoin-project/specs-actors/v2/actors/builtin/miner" proof2 "github.com/filecoin-project/specs-actors/v2/actors/runtime/proof" tutils "github.com/filecoin-project/specs-actors/v2/support/testing" "github.com/filecoin-project/lotus/api" + "github.com/filecoin-project/lotus/build" "github.com/filecoin-project/lotus/chain/actors/builtin/miner" "github.com/filecoin-project/lotus/chain/types" "github.com/filecoin-project/lotus/journal" @@ -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 { }