Update `PaymentsControllerTest`

This commit is contained in:
Chris Eager 2021-09-10 17:05:53 -07:00 committed by Chris Eager
parent 6c6e6a4975
commit 372e131e25
1 changed files with 2 additions and 1 deletions

View File

@ -126,7 +126,8 @@ class PaymentsControllerTest {
.header("Authorization", AuthHelper.getAuthHeader(AuthHelper.VALID_UUID, AuthHelper.VALID_PASSWORD))
.get(String.class);
assertThat(json.contains("{\"USD\":2.35,\"EUR\":1.89}"));
// the currency serialization might occur in either order
assertThat(json).containsPattern("\\{(\"EUR\":1.89,\"USD\":2.35|\"USD\":2.35,\"EUR\":1.89)}");
}
}