Skip to content

Commit

Permalink
Fix broken UT
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Dai <[email protected]>
  • Loading branch information
dai-chen committed Sep 30, 2024
1 parent 28d8af3 commit ed0d3d9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ class FlintSparkTransactionSupportSuite extends FlintSuite with Matchers {

override protected def beforeEach(): Unit = {
super.beforeEach()

val logEntry = mock[FlintMetadataLog[FlintMetadataLogEntry]]
when(logEntry.getLatest).thenReturn(Optional.of(mock[FlintMetadataLogEntry]))
when(mockFlintMetadataLogService.getIndexMetadataLog(testIndex))
.thenReturn(Optional.of(mock[FlintMetadataLog[FlintMetadataLogEntry]]))
.thenReturn(Optional.of(logEntry))
}

override protected def afterEach(): Unit = {
Expand Down

0 comments on commit ed0d3d9

Please sign in to comment.