itests: Test snapdeals abort cleanup
This commit is contained in:
@@ -224,3 +224,36 @@ func (tm *TestMiner) SectorsListNonGenesis(ctx context.Context) ([]abi.SectorNum
|
||||
|
||||
return l[tm.PresealSectors:], nil
|
||||
}
|
||||
|
||||
type SchedInfo struct {
|
||||
CallToWork struct{}
|
||||
EarlyRet interface{}
|
||||
ReturnedWork interface{}
|
||||
SchedInfo struct {
|
||||
OpenWindows []string
|
||||
Requests []struct {
|
||||
Priority int
|
||||
SchedId uuid.UUID
|
||||
Sector struct {
|
||||
Miner int
|
||||
Number int
|
||||
}
|
||||
TaskType string
|
||||
}
|
||||
}
|
||||
Waiting interface{}
|
||||
}
|
||||
|
||||
func (tm *TestMiner) SchedInfo(ctx context.Context) SchedInfo {
|
||||
schedb, err := tm.SealingSchedDiag(ctx, false)
|
||||
require.NoError(tm.t, err)
|
||||
|
||||
j, err := json.MarshalIndent(&schedb, "", " ")
|
||||
require.NoError(tm.t, err)
|
||||
|
||||
var b SchedInfo
|
||||
err = json.Unmarshal(j, &b)
|
||||
require.NoError(tm.t, err)
|
||||
|
||||
return b
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user