Skip to content

Commit

Permalink
fix doInTransaction in disabled invoicing application test
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsCW committed Feb 6, 2024
1 parent 0a00daa commit 324784d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,10 @@ void createOrder_withPromoCodes_shouldReturn_http201_created() throws Exception
.map(UUID::fromString)
.orElseThrow();

assertThat(orders.findById(orderId)).hasValueSatisfying(order -> {
assertThat(order.getPromos()).hasSize(2);
doInTransaction(() -> {
assertThat(orders.findById(orderId)).hasValueSatisfying(order -> {
assertThat(order.getPromos()).hasSize(2);
});
});
}
}
Expand Down

0 comments on commit 324784d

Please sign in to comment.