Skip to content

Commit

Permalink
Added a delay for more consistent results
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-da committed Apr 16, 2021
1 parent 9bb49d3 commit f79025e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import com.daml.ledger.api.testtool.infrastructure.Assertions._
import com.daml.ledger.api.testtool.infrastructure.LedgerTestSuite
import com.daml.ledger.api.testtool.infrastructure.ProtobufConverters._
import com.daml.ledger.test.model.Test.DummyWithAnnotation
import com.daml.timer.Delayed

import scala.concurrent.Future
import scala.concurrent.duration.{DurationInt, FiniteDuration}
Expand Down Expand Up @@ -39,6 +40,7 @@ final class ValueLimitsIT(timeoutScaleFactor: Double) extends LedgerTestSuite {
_.commands.deduplicationTime := deduplicationTime.asProtobuf
)
_ <- ledger.submit(request)
_ <- Delayed.by(1.second)(())
contracts <- ledger.activeContracts(parties.head)
} yield {
assertSingleton("Single create contract expected", contracts)
Expand Down

0 comments on commit f79025e

Please sign in to comment.