Remove HA indexer integration test on H2 (#11104)

This test was supposed to always fail, but sometimes it passes

changelog_begin
changelog_end
This commit is contained in:
Robert Autenrieth 2021-10-04 22:52:54 +02:00 committed by GitHub
parent 9cffa1faf6
commit 429f43731a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 24 deletions

View File

@ -16,7 +16,6 @@ import org.scalatest.time.{Millis, Seconds, Span}
import java.sql.Connection
import scala.concurrent.{ExecutionContext, Future}
import scala.util.Success
trait IndexerStabilitySpec
extends AsyncFlatSpec
@ -29,8 +28,6 @@ trait IndexerStabilitySpec
// To be overriden by the spec implementation
def jdbcUrl: String
def haModeSupported: Boolean
// The default EC is coming from AsyncTestSuite and is serial, do not use it
implicit val ec: ExecutionContext = system.dispatcher
private implicit val loggingContext: LoggingContext = LoggingContext.ForTesting
@ -104,15 +101,6 @@ trait IndexerStabilitySpec
Future.successful(())
}
.map(_ => succeed)
}.transform { result =>
if (haModeSupported) {
result
} else {
// If HA mode is not supported, the test must fail, but there are multiple reasons why it can fail.
// E.g., duplicate parameter table initialization, or duplicate event sequential ids.
assert(result.isFailure, "The test must fail if HA mode is not supported")
Success(succeed)
}
}
// Finds the first non-aborted indexer that has subscribed to the ReadService stream

View File

@ -1,10 +0,0 @@
// Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package com.daml.platform.indexer.ha
final class IndexerStabilityH2Spec extends IndexerStabilitySpec {
override def jdbcUrl: String = "jdbc:h2:mem:indexer_stability_spec;db_close_delay=-1"
override def haModeSupported: Boolean = false
}

View File

@ -9,5 +9,4 @@ final class IndexerStabilityOracleSpec extends IndexerStabilitySpec with OracleA
override def jdbcUrl: String =
s"jdbc:oracle:thin:$oracleUser/$oraclePwd@localhost:$oraclePort/ORCLPDB1"
override def haModeSupported: Boolean = true
}

View File

@ -8,5 +8,4 @@ import com.daml.testing.postgresql.PostgresAroundEach
final class IndexerStabilityPostgresSpec extends IndexerStabilitySpec with PostgresAroundEach {
override def jdbcUrl: String = postgresDatabase.url
override def haModeSupported: Boolean = true
}