Skip to content

Commit

Permalink
Fix WeakRef specs in release mode (#4790)
Browse files Browse the repository at this point in the history
  • Loading branch information
RX14 committed Aug 4, 2017
1 parent e85746f commit 0906a88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/std/weak_ref_spec.cr
Expand Up @@ -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.