From 147e18e28eb43f5d6c9cdf9a5ef124201b4132d7 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 --- storage/sealing/fsm_test.go | 2 +- storage/sealing/types_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/sealing/fsm_test.go b/storage/sealing/fsm_test.go index 9b1a5d3e8..490b01771 100644 --- a/storage/sealing/fsm_test.go +++ b/storage/sealing/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/storage/sealing/types_test.go b/storage/sealing/types_test.go index f3ec17aa3..93bffc20c 100644 --- a/storage/sealing/types_test.go +++ b/storage/sealing/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{{