Skip to content

Commit 4996b6d

Browse files
committed
exclude ThreadPoolExecutor from graph comparison
1 parent 320cdc3 commit 4996b6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/org/opentripplanner/routing/graph/GraphSerializationTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ public void compareGraphToItself () {
8686
ObjectDiffer objectDiffer = new ObjectDiffer();
8787
objectDiffer.ignoreFields("incoming", "outgoing");
8888
objectDiffer.useEquals(BitSet.class, LineString.class, Polygon.class);
89-
objectDiffer.ignoreClasses(WeakValueHashMap.class);
89+
// ThreadPoolExecutor contains a weak reference to a very deep chain of Finalizer instances.
90+
objectDiffer.ignoreClasses(WeakValueHashMap.class, ThreadPoolExecutor.class);
9091
// This setting is critical to perform a deep test of an object against itself.
9192
objectDiffer.enableComparingIdenticalObjects();
9293
objectDiffer.compareTwoObjects(originalGraph, originalGraph);

0 commit comments

Comments
 (0)