storgefsm: Fix tests

This commit is contained in:
Łukasz Magiera 2021-03-12 14:56:46 +01:00
parent f5ed25371b
commit 5c605d99e2

View File

@ -394,6 +394,10 @@ func (m *Sealing) plan(events []statemachine.Event, state *SectorInfo) (func(sta
}
func (m *Sealing) onUpdateSector(ctx context.Context, state *SectorInfo) error {
if m.getConfig == nil {
return nil // tests
}
cfg, err := m.getConfig()
if err != nil {
return xerrors.Errorf("getting config: %w", err)