Skip to content

Commit

Permalink
make gen
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Mar 6, 2023
1 parent 9a295e5 commit b0ebdb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
12 changes: 2 additions & 10 deletions itests/worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ func TestWindowPostWorkerDisconnected(t *testing.T) {

sectors := 2 * 48 * 2

client, miner, badWorker, ens := kit.EnsembleWorker(t,
_, miner, badWorker, ens := kit.EnsembleWorker(t,
kit.PresealSectors(sectors), // 2 sectors per partition, 2 partitions in all 48 deadlines
kit.LatestActorsAt(-1),
kit.ThroughRPC(),
Expand All @@ -408,14 +408,6 @@ func TestWindowPostWorkerDisconnected(t *testing.T) {
var goodWorker kit.TestWorker
ens.Worker(miner, &goodWorker, kit.WithTaskTypes([]sealtasks.TaskType{sealtasks.TTGenerateWindowPoSt}), kit.ThroughRPC()).Start()

maddr, err := miner.ActorAddress(ctx)
require.NoError(t, err)

di, err := client.StateMinerProvingDeadline(ctx, maddr, types.EmptyTSK)
require.NoError(t, err)

di = di.NextNotElapsed()

tryDl := func(dl uint64) {
p, err := miner.ComputeWindowPoSt(ctx, dl, types.EmptyTSK)
require.NoError(t, err)
Expand All @@ -424,7 +416,7 @@ func TestWindowPostWorkerDisconnected(t *testing.T) {
}
tryDl(0) // this will run on the not-yet-bad badWorker

err = badWorker.Stop(ctx)
err := badWorker.Stop(ctx)
require.NoError(t, err)

tryDl(10) // will fail on the badWorker, then should retry on the goodWorker
Expand Down
4 changes: 2 additions & 2 deletions storage/sealer/sched_post.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ package sealer
import (
"context"
"errors"
"github.com/filecoin-project/go-jsonrpc"
"github.com/hashicorp/go-multierror"
"math/rand"
"sync"
"time"

"github.com/hashicorp/go-multierror"
"golang.org/x/xerrors"

"github.com/filecoin-project/go-jsonrpc"
"github.com/filecoin-project/go-state-types/abi"

"github.com/filecoin-project/lotus/storage/paths"
Expand Down

0 comments on commit b0ebdb6

Please sign in to comment.