Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky test toStringWithUnprocessedProps #516

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -278,5 +278,11 @@
<version>2.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.skyscreamer</groupId>
<artifactId>jsonassert</artifactId>
<version>1.5.1</version> <!-- Use the latest version available -->
<scope>test</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.json.JSONObject;
import org.json.JSONPointer;
import org.junit.jupiter.api.Test;
import org.skyscreamer.jsonassert.JSONAssert;

import com.google.re2j.Pattern;

Expand Down Expand Up @@ -412,7 +413,7 @@ public void toStringWithUnprocessedProps() {
JSONObject rawSchemaJson = loader.readObj("tostring/objectschema-unprocessed.json");
Schema schema = SchemaLoader.load(rawSchemaJson);
String actual = schema.toString();
assertThat(new JSONObject(actual), sameJsonAs(rawSchemaJson));
JSONAssert.assertEquals(rawSchemaJson.toString(), actual, false);
}

@Test
Expand Down