Skip to content

Commit

Permalink
Merge pull request #134 from jglick/MemoryAssert
Browse files Browse the repository at this point in the history
Always print softErr from MemoryAssert even if test ultimately passes
  • Loading branch information
jglick authored Jun 3, 2019
2 parents 7ad9fc2 + 5db1e4d commit f195ba2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/jvnet/hudson/test/MemoryAssert.java
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ public static void assertGC(WeakReference<?> reference, boolean allowSoft) {
return !referent.equals(reference) || !(referredFrom instanceof WeakReference);
}
}) + "; apparent weak references: " + fromRoots(Collections.singleton(obj), null, null, ScannerUtils.skipObjectsFilter(Collections.singleton(reference), true));
System.err.println(softErr);
}
}
}
Expand Down

0 comments on commit f195ba2

Please sign in to comment.