Skip to content

Commit

Permalink
Fix UT, remove NoOptimisticTransaction
Browse files Browse the repository at this point in the history
Signed-off-by: Peng Huo <[email protected]>
  • Loading branch information
penghuo committed Nov 19, 2023
1 parent 0521a0e commit a239412
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import org.opensearch.client.opensearch.OpenSearchClient
import org.opensearch.client.transport.rest_client.RestClientTransport
import org.opensearch.flint.OpenSearchSuite
import org.opensearch.flint.core.metadata.FlintMetadata
import org.opensearch.flint.core.metadata.log.OptimisticTransaction.NoOptimisticTransaction
import org.opensearch.flint.core.storage.{FlintOpenSearchClient, OpenSearchScrollReader}
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
Expand All @@ -31,11 +30,6 @@ class FlintOpenSearchClientSuite extends AnyFlatSpec with OpenSearchSuite with M

behavior of "Flint OpenSearch client"

it should "start no optimistic transaction if metadata log index doesn't exists" in {
val transaction = flintClient.startTransaction("test", "non-exist-index")
transaction shouldBe a[NoOptimisticTransaction[AnyRef]]
}

it should "create index successfully" in {
val indexName = "test"
val content =
Expand Down

0 comments on commit a239412

Please sign in to comment.