MINOR: Fix shouldNotResetEpochHistoryHeadIfUndefinedPassed
In LeaderEpochFileCacheTest.scala, code is identical for `shouldNotResetEpochHistoryHeadIfUndefinedPassed` and `shouldNotResetEpochHistoryTailIfUndefinedPassed`. Seems `truncateFromStart` should be invoked in `shouldNotResetEpochHistoryHeadIfUndefinedPassed` instead of `truncateFromEnd`.
@@ -527,7 +527,7 @@ class LeaderEpochFileCacheTest {
cache.assign(epoch = 4, startOffset = 11)
//When reset to offset on epoch boundary
- cache.truncateFromEnd(endOffset = UNDEFINED_EPOCH_OFFSET)
+ cache.truncateFromStart(startOffset = UNDEFINED_EPOCH_OFFSET)
//Then should do nothing
assertEquals(3, cache.epochEntries.size)
