Skip to content

Commit

Permalink
tests: fix integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Voiturier <[email protected]>
  • Loading branch information
bvoiturier committed Jun 14, 2024
1 parent b00d049 commit 132862f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class WalletsSteps {
fun acmeCreateNewWalletWithTheSameId(acme: Actor) {
createNewWallet(acme, id = acme.recall("uniqueId"))
acme.attemptsTo(
Ensure.thatTheLastResponse().statusCode().isEqualTo(SC_BAD_REQUEST),
Ensure.thatTheLastResponse().statusCode().isEqualTo(SC_UNPROCESSABLE_ENTITY),
)
}

Expand Down Expand Up @@ -124,7 +124,7 @@ class WalletsSteps {
@Then("{actor} should have only one wallet and second operation should fail")
fun acmeShouldHaveOnlyOneWalletAndSecondOperationShouldFail(acme: Actor) {
acme.attemptsTo(
Ensure.thatTheLastResponse().statusCode().isEqualTo(SC_BAD_REQUEST),
Ensure.thatTheLastResponse().statusCode().isEqualTo(SC_UNPROCESSABLE_ENTITY),
)
acme.attemptsTo(
Get.resource("/wallets"),
Expand Down

0 comments on commit 132862f

Please sign in to comment.