Skip to content

Commit

Permalink
Adapt transactionNotFound error assertions in conformance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-da committed Oct 20, 2021
1 parent 482aa3d commit e4ee5eb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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."))
)
}
})
Expand Down Expand Up @@ -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."))
)
}
})
Expand Down Expand Up @@ -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."))
)
}
})
Expand Down Expand Up @@ -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."))
)
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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."),
)
}
})
Expand All @@ -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."),
)
}
})
Expand Down Expand Up @@ -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."),
)
}
})
Expand All @@ -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."),
)
}
})
Expand Down Expand Up @@ -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."),
)
}
})
Expand All @@ -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."),
)
}
})
Expand Down Expand Up @@ -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."),
)
}
})
Expand All @@ -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."),
)
}
})
Expand Down

0 comments on commit e4ee5eb

Please sign in to comment.