Skip to content
Permalink
Browse files
Fix WeakRef specs in release mode (#4790)
  • Loading branch information
RX14 committed Aug 4, 2017
1 parent e85746f commit 0906a883e3d8dcab6e83a1abc39fca227fa5b9ef
Showing with 3 additions and 0 deletions.
  1. +3 −0 spec/std/weak_ref_spec.cr
@@ -79,5 +79,8 @@ describe WeakRef do
State.count(:weak_foo_ref).should be > 0
instances.select { |wr| wr.value.nil? }.size.should be > 0
instances[-1].value.should_not be_nil

# Use `last` to stop the variable from being optimised away in release mode.
last.to_s
end
end

0 comments on commit 0906a88

Please sign in to comment.