From 5977db883341a50ba222e23921ad4b69b044fe30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Fri, 3 Apr 2020 18:36:48 +0200 Subject: [PATCH] fsm: Fix tests after changisg SectorState to a string --- fsm_test.go | 2 +- types_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fsm_test.go b/fsm_test.go index 9b1a5d3e8..490b01771 100644 --- a/fsm_test.go +++ b/fsm_test.go @@ -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) } diff --git a/types_test.go b/types_test.go index f3ec17aa3..93bffc20c 100644 --- a/types_test.go +++ b/types_test.go @@ -18,7 +18,7 @@ func TestSectorInfoSelialization(t *testing.T) { dummyCid := builtin.AccountActorCodeID si := &SectorInfo{ - State: 123, + State: "stateful", SectorID: 234, Nonce: 345, Pieces: []Piece{{