Skip to content

Commit

Permalink
sched: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Oct 28, 2020
1 parent 4cf00b8 commit ed2f81d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions extern/sector-storage/sched_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -591,8 +591,13 @@ func TestWindowCompact(t *testing.T) {
wh.activeWindows = append(wh.activeWindows, window)
}

n := sh.workerCompactWindows(wh, WorkerID{})
require.Equal(t, len(start)-len(expect), n)
sw := schedWorker{
sched: &sh,
worker: wh,
}

sw.workerCompactWindows()
require.Equal(t, len(start)-len(expect), -sw.windowsRequested)

for wi, tasks := range expect {
var expectRes activeResources
Expand Down

0 comments on commit ed2f81d

Please sign in to comment.