From 0a819e1fc02d009befb05d0b605d34b9c2fa6344 Mon Sep 17 00:00:00 2001 From: Tudor Voicu Date: Tue, 19 Oct 2021 11:17:51 +0200 Subject: [PATCH] Adapt transactionNotFound error assertions in conformance tests --- .../testtool/suites/ParticipantPruningIT.scala | 8 ++++---- .../suites/TransactionServiceQueryIT.scala | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ledger/ledger-api-test-tool/src/main/scala/com/daml/ledger/api/testtool/suites/ParticipantPruningIT.scala b/ledger/ledger-api-test-tool/src/main/scala/com/daml/ledger/api/testtool/suites/ParticipantPruningIT.scala index 5ffa489b146d..a40e2af316a2 100644 --- a/ledger/ledger-api-test-tool/src/main/scala/com/daml/ledger/api/testtool/suites/ParticipantPruningIT.scala +++ b/ledger/ledger-api-test-tool/src/main/scala/com/daml/ledger/api/testtool/suites/ParticipantPruningIT.scala @@ -283,7 +283,7 @@ class ParticipantPruningIT extends LedgerTestSuite { ) } yield { prunedTransactionTrees.foreach( - assertGrpcError(_, Status.Code.NOT_FOUND, Some("Transaction not found, or not visible.")) + assertGrpcError(_, Status.Code.NOT_FOUND, Some("Transaction not found or not visible.")) ) } }) @@ -326,7 +326,7 @@ class ParticipantPruningIT extends LedgerTestSuite { ) } yield { prunedFlatTransactions.foreach( - assertGrpcError(_, Status.Code.NOT_FOUND, Some("Transaction not found, or not visible.")) + assertGrpcError(_, Status.Code.NOT_FOUND, Some("Transaction not found or not visible.")) ) } }) @@ -365,7 +365,7 @@ class ParticipantPruningIT extends LedgerTestSuite { _ <- Future.sequence(unprunedEventIds.map(participant.transactionTreeByEventId(_, submitter))) } yield { prunedEventsViaTree.foreach( - assertGrpcError(_, Status.Code.NOT_FOUND, Some("Transaction not found, or not visible.")) + assertGrpcError(_, Status.Code.NOT_FOUND, Some("Transaction not found or not visible.")) ) } }) @@ -404,7 +404,7 @@ class ParticipantPruningIT extends LedgerTestSuite { _ <- Future.sequence(unprunedEventIds.map(participant.flatTransactionByEventId(_, submitter))) } yield { prunedEventsViaFlat.foreach( - assertGrpcError(_, Status.Code.NOT_FOUND, Some("Transaction not found, or not visible.")) + assertGrpcError(_, Status.Code.NOT_FOUND, Some("Transaction not found or not visible.")) ) } }) diff --git a/ledger/ledger-api-test-tool/src/main/scala/com/daml/ledger/api/testtool/suites/TransactionServiceQueryIT.scala b/ledger/ledger-api-test-tool/src/main/scala/com/daml/ledger/api/testtool/suites/TransactionServiceQueryIT.scala index 0848fd6df85c..91382d71f092 100644 --- a/ledger/ledger-api-test-tool/src/main/scala/com/daml/ledger/api/testtool/suites/TransactionServiceQueryIT.scala +++ b/ledger/ledger-api-test-tool/src/main/scala/com/daml/ledger/api/testtool/suites/TransactionServiceQueryIT.scala @@ -42,7 +42,7 @@ class TransactionServiceQueryIT extends LedgerTestSuite { assertGrpcError( failure, Status.Code.NOT_FOUND, - Some("Transaction not found, or not visible."), + Some("Transaction not found or not visible."), ) } }) @@ -60,7 +60,7 @@ class TransactionServiceQueryIT extends LedgerTestSuite { assertGrpcError( failure, Status.Code.NOT_FOUND, - Some("Transaction not found, or not visible."), + Some("Transaction not found or not visible."), ) } }) @@ -94,7 +94,7 @@ class TransactionServiceQueryIT extends LedgerTestSuite { assertGrpcError( failure, Status.Code.NOT_FOUND, - Some("Transaction not found, or not visible."), + Some("Transaction not found or not visible."), ) } }) @@ -112,7 +112,7 @@ class TransactionServiceQueryIT extends LedgerTestSuite { assertGrpcError( failure, Status.Code.NOT_FOUND, - Some("Transaction not found, or not visible."), + Some("Transaction not found or not visible."), ) } }) @@ -148,7 +148,7 @@ class TransactionServiceQueryIT extends LedgerTestSuite { assertGrpcError( failure, Status.Code.NOT_FOUND, - Some("Transaction not found, or not visible."), + Some("Transaction not found or not visible."), ) } }) @@ -166,7 +166,7 @@ class TransactionServiceQueryIT extends LedgerTestSuite { assertGrpcError( failure, Status.Code.NOT_FOUND, - Some("Transaction not found, or not visible."), + Some("Transaction not found or not visible."), ) } }) @@ -202,7 +202,7 @@ class TransactionServiceQueryIT extends LedgerTestSuite { assertGrpcError( failure, Status.Code.NOT_FOUND, - Some("Transaction not found, or not visible."), + Some("Transaction not found or not visible."), ) } }) @@ -220,7 +220,7 @@ class TransactionServiceQueryIT extends LedgerTestSuite { assertGrpcError( failure, Status.Code.NOT_FOUND, - Some("Transaction not found, or not visible."), + Some("Transaction not found or not visible."), ) } })