storagefsm: Test fsmPlanners map
This commit is contained in:
parent
ba87cb4fa9
commit
eeb38fa649
15
extern/storage-sealing/fsm_test.go
vendored
15
extern/storage-sealing/fsm_test.go
vendored
@ -160,3 +160,18 @@ func TestPlanCommittingHandlesSectorCommitFailed(t *testing.T) {
|
|||||||
|
|
||||||
require.Equal(t, CommitFailed, m.state.State)
|
require.Equal(t, CommitFailed, m.state.State)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestPlannerList(t *testing.T) {
|
||||||
|
for state := range ExistSectorStateList {
|
||||||
|
_, ok := fsmPlanners[state]
|
||||||
|
require.True(t, ok, "state %s", state)
|
||||||
|
}
|
||||||
|
|
||||||
|
for state := range fsmPlanners {
|
||||||
|
if state == UndefinedSectorState {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
_, ok := ExistSectorStateList[state]
|
||||||
|
require.True(t, ok, "state %s", state)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user