Skip to content

Commit

Permalink
Fix IT failure
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Dai <daichen@amazon.com>
  • Loading branch information
dai-chen committed Jul 12, 2023
1 parent e10d160 commit df90b01
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,12 @@ class FlintSparkSkippingIndexITSuite
.onTable(testTable)
.addPartitions("year", "month")
.create()
flint.refreshIndex(testIndex, INCREMENTAL)

val jobId = flint.refreshIndex(testIndex, INCREMENTAL)
val job = spark.streams.get(jobId.get)
failAfter(streamingTimeout) {
job.processAllAvailable()
}

assertThrows[IllegalStateException] {
flint.refreshIndex(testIndex, FULL)
Expand Down

0 comments on commit df90b01

Please sign in to comment.