Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
pron committed Jul 28, 2017
1 parent 24e6307 commit 9a79f66
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public void leaky() throws Exception {

leaked = "leaked";

TestsHelper.exec(co);
TestsHelper.exec(co);
TestsHelper.exec(co);

Expand All @@ -48,8 +49,8 @@ public void leaky() throws Exception {
List<Object> stack = Arrays.asList((Object[])objectsField.get(stackField.get(co)));

// System.out.println(stack);
assertThat(stack, not(hasItem(leaked)));
// assertThat(stack, everyItem(nullValue())); -- brittle
// assertThat(stack, not(hasItem(leaked)));
assertThat(stack, everyItem(nullValue()));

// WeakReference<String> ref = new WeakReference<>(leaked);
// leaked = null;
Expand Down

0 comments on commit 9a79f66

Please sign in to comment.