fsm: Fix tests after changisg SectorState to a string

This commit is contained in:
Łukasz Magiera 2020-04-03 18:36:48 +02:00
parent a1b35aa9d5
commit 147e18e28e
2 changed files with 2 additions and 2 deletions

View File

@ -102,5 +102,5 @@ func TestPlanCommittingHandlesSectorCommitFailed(t *testing.T) {
require.NoError(t, planCommitting(events, m.state))
require.Equal(t, api.SectorStates[api.CommitFailed], api.SectorStates[m.state.State])
require.Equal(t, api.CommitFailed, m.state.State)
}

View File

@ -18,7 +18,7 @@ func TestSectorInfoSelialization(t *testing.T) {
dummyCid := builtin.AccountActorCodeID
si := &SectorInfo{
State: 123,
State: "stateful",
SectorID: 234,
Nonce: 345,
Pieces: []Piece{{