sched: Fix tests
This commit is contained in:
parent
4cf00b8b42
commit
ed2f81da2f
9
extern/sector-storage/sched_test.go
vendored
9
extern/sector-storage/sched_test.go
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user