diff --git a/actionpack/test/controller/test_case_test.rb b/actionpack/test/controller/test_case_test.rb
index <HASH>..<HASH> 100644
--- a/actionpack/test/controller/test_case_test.rb
+++ b/actionpack/test/controller/test_case_test.rb
@@ -1003,8 +1003,10 @@ XML
     assert_equal "1", response.body
   end
 
-  def test_can_read_instance_variables_before_or_after_request
-    assert_nil @controller.instance_variable_get(:@counter)
+  def test_can_read_instance_variables_before_and_after_request
+    silence_warnings do
+      assert_nil @controller.instance_variable_get(:@counter)
+    end
 
     get :increment_count
     assert_equal "1", response.body
Silence uninitialized instance var warning in tests

Running the Action Pack tests outputs a warning:

    ./actionpack/test/controller/test_case_test.rb:<I>: warning: instance variable @counter not initialized

Surrounding the line with silence_warnings cleans up the output.