From e10d160f2dcfc397e21721b3355e1545e3892494 Mon Sep 17 00:00:00 2001 From: Chen Dai Date: Tue, 11 Jul 2023 16:59:19 -0700 Subject: [PATCH] Fix IT failure Signed-off-by: Chen Dai --- .../FlintSparkSkippingIndexITSuite.scala | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/flint/integ-test/src/test/scala/org/opensearch/flint/spark/FlintSparkSkippingIndexITSuite.scala b/flint/integ-test/src/test/scala/org/opensearch/flint/spark/FlintSparkSkippingIndexITSuite.scala index d99d1bdfe0..30179891a2 100644 --- a/flint/integ-test/src/test/scala/org/opensearch/flint/spark/FlintSparkSkippingIndexITSuite.scala +++ b/flint/integ-test/src/test/scala/org/opensearch/flint/spark/FlintSparkSkippingIndexITSuite.scala @@ -175,6 +175,19 @@ class FlintSparkSkippingIndexITSuite indexData should have size 2 } + test("should fail to manual refresh an incremental refreshing index") { + flint + .skippingIndex() + .onTable(testTable) + .addPartitions("year", "month") + .create() + flint.refreshIndex(testIndex, INCREMENTAL) + + assertThrows[IllegalStateException] { + flint.refreshIndex(testIndex, FULL) + } + } + test("incremental refresh skipping index successfully") { // Create Flint index and wait for complete flint @@ -201,19 +214,6 @@ class FlintSparkSkippingIndexITSuite indexData should have size 2 } - test("should fail to manual refresh an incremental refreshing index") { - flint - .skippingIndex() - .onTable(testTable) - .addPartitions("year", "month") - .create() - flint.refreshIndex(testIndex, INCREMENTAL) - - assertThrows[IllegalStateException] { - flint.refreshIndex(testIndex, FULL) - } - } - test("can have only 1 skipping index on a table") { flint .skippingIndex()