Skip to content

Commit

Permalink
update test with removal of test indices
Browse files Browse the repository at this point in the history
Signed-off-by: YANGDB <[email protected]>
  • Loading branch information
YANG-DB committed Oct 19, 2023
1 parent 904a861 commit 6dac21b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ class FlintSparkCoveringIndexSqlITSuite extends FlintSparkSuite {
settings = parse(flintClient.getIndexMetadata(testFlintIndex).indexSettings.get)
(settings \ "index.number_of_shards").extract[String] shouldBe "2"
(settings \ "index.number_of_replicas").extract[String] shouldBe "3"

//remove test index
flint.deleteIndex(targetIndex)
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class FlintSparkMaterializedViewITSuite extends FlintSparkSuite {
.options(indexOptions)
.create()

val index = flint.describeIndex("existing_index")
val index = flint.describeIndex(testTargetIndex)
index shouldBe defined
index.get.metadata().getContent() should matchJson(s"""
| {
Expand Down Expand Up @@ -230,6 +230,8 @@ class FlintSparkMaterializedViewITSuite extends FlintSparkSuite {
| }
| }
|""".stripMargin)
//remove test index
flint.deleteIndex(testTargetIndex)
}

private def timestamp(ts: String): Timestamp = Timestamp.valueOf(ts)
Expand Down

0 comments on commit 6dac21b

Please sign in to comment.