mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
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:
parent
9cffa1faf6
commit
429f43731a
@ -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
|
||||
|
@ -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
|
||||
}
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user