diff --git a/CedarJava/src/test/java/com/cedarpolicy/PolicyFormatterTests.java b/CedarJava/src/test/java/com/cedarpolicy/PolicyFormatterTests.java index 125abd16..2a37e6c3 100644 --- a/CedarJava/src/test/java/com/cedarpolicy/PolicyFormatterTests.java +++ b/CedarJava/src/test/java/com/cedarpolicy/PolicyFormatterTests.java @@ -61,7 +61,8 @@ public void testPoliciesStrToPrettyWithConfig() throws Exception { String formattedCedarPolicyWithCustomConfig = Files.readString( Path.of(TEST_RESOURCES_DIR + "formatted_policy_custom_config.cedar")); - assertEquals(formattedCedarPolicyWithCustomConfig.trim(), + // Random change + assertEquals(formattedCedarPolicyWithCustomConfig, PolicyFormatter.policiesStrToPrettyWithConfig(unformattedCedarPolicy, new Config(120, 4))); } }