Skip to content

Commit

Permalink
fix: Fail faster
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Roberts <ryan@blockchaintp.com>
  • Loading branch information
ryan-s-roberts committed Sep 15, 2021
1 parent df0fe69 commit ba393c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docker/daml-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,22 @@ services:
entrypoint: "bash -xc \"\
sleep 120 && \
java -jar ledger-api-test-tool.jar \
--timeout-scale-factor 10 \
--timeout-scale-factor 2 \
--concurrent-test-runs 1 \
daml-on-qldb:9000 \
|| \
java -jar ledger-api-test-tool.jar \
--timeout-scale-factor 10 \
--timeout-scale-factor 2 \
--concurrent-test-runs 1 \
daml-on-qldb:9000 \
|| \
java -jar ledger-api-test-tool.jar \
--timeout-scale-factor 10 \
--timeout-scale-factor 2 \
--concurrent-test-runs 1 \
daml-on-qldb:9000 \
|| \
java -jar ledger-api-test-tool.jar \
--timeout-scale-factor 10 \
--timeout-scale-factor 2 \
--concurrent-test-runs 1 \
daml-on-qldb:9000 \
\""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public akka.stream.scaladsl.Source<LedgerRecord, NotUsed> events(final Option<Of
.comparatorToOrdering(Comparator.comparingLong(scala.Long::unbox));

var rangeSource = new RangeSource<>((s, e) -> Source
.fromJavaStream(() -> API.unchecked(() -> txLog.from(s - 1, Optional.of(e - 1))).apply()
.fromJavaStream(() -> API.unchecked(() -> txLog.from(s - 1, Optional.of(e))).apply()
.map(r -> Tuple2.apply(r._1, LedgerRecord.apply(OffsetBuilder.fromLong(r._1, 0, 0), r._2, r._3))))
.mapMaterializedValue(m -> NotUsed.notUsed()).asScala(), scalaLongOrdering);

Expand Down

0 comments on commit ba393c7

Please sign in to comment.