From a23941207aa14e2a2b9ae6d8dbbb516b6f010b62 Mon Sep 17 00:00:00 2001 From: Peng Huo Date: Sun, 19 Nov 2023 11:50:21 -0800 Subject: [PATCH] Fix UT, remove NoOptimisticTransaction Signed-off-by: Peng Huo --- .../opensearch/flint/core/FlintOpenSearchClientSuite.scala | 6 ------ 1 file changed, 6 deletions(-) diff --git a/integ-test/src/test/scala/org/opensearch/flint/core/FlintOpenSearchClientSuite.scala b/integ-test/src/test/scala/org/opensearch/flint/core/FlintOpenSearchClientSuite.scala index 9a762d9d6..d80bccc10 100644 --- a/integ-test/src/test/scala/org/opensearch/flint/core/FlintOpenSearchClientSuite.scala +++ b/integ-test/src/test/scala/org/opensearch/flint/core/FlintOpenSearchClientSuite.scala @@ -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 @@ -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 =