Skip to content
Prev Previous commit
Next Next commit
error return
  • Loading branch information
tac0turtle
tac0turtle committed Apr 17, 2025
commit 9887858e9972a40ae474fc26ea5ce61444d14b96
6 changes: 4 additions & 2 deletions block/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,8 @@ func Test_publishBlock_NoBatch(t *testing.T) {
}

mockStore.On("GetMetadata", ctx, LastSubmittedHeightKey).Return([]byte{0}, nil)
m.pendingHeaders.init()
err = m.pendingHeaders.init()
require.NoError(err)

// Mock store calls for height and previous block/commit
currentHeight := uint64(1)
Expand Down Expand Up @@ -553,7 +554,8 @@ func Test_publishBlock_EmptyBatch(t *testing.T) {
}

mockStore.On("GetMetadata", ctx, LastSubmittedHeightKey).Return([]byte{0}, nil)
m.pendingHeaders.init()
err = m.pendingHeaders.init()
require.NoError(err)

// Mock store calls
currentHeight := uint64(1)
Expand Down