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 abb433aa42
commit 5977db8833
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.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 dummyCid := builtin.AccountActorCodeID
si := &SectorInfo{ si := &SectorInfo{
State: 123, State: "stateful",
SectorID: 234, SectorID: 234,
Nonce: 345, Nonce: 345,
Pieces: []Piece{{ Pieces: []Piece{{