about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-08-19 19:36:23 -0700
committerEric Wong <normalperson@yhbt.net>2010-08-19 19:36:49 -0700
commit8f5be0c822362e113919145d52b9eeebba711236 (patch)
tree9b0bf5578da9296003a96656cf2ef03df27479ac
parentcea38abf1f76b5b795b9341406ee814303f5752b (diff)
downloadruby_posix_mq-8f5be0c822362e113919145d52b9eeebba711236.tar.gz
We shouldn't unnecessarily hog system resources.
-rw-r--r--test/test_posix_mq.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_posix_mq.rb b/test/test_posix_mq.rb
index 78a005b..777b9bf 100644
--- a/test/test_posix_mq.rb
+++ b/test/test_posix_mq.rb
@@ -30,7 +30,7 @@ class Test_POSIX_MQ < Test::Unit::TestCase
   def test_gc
     assert_nothing_raised do
       2025.times { POSIX_MQ.new(@path, :rw) }
-      2025.times { a = POSIX_MQ.new(@path, :rw); a.to_io }
+      2025.times { @mq = POSIX_MQ.new(@path, :rw); @mq.to_io }
     end
   end