From 7f565b923a62638e76b053f996e7149ec035b63d Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Wed, 8 Nov 2023 15:39:19 +0900 Subject: [PATCH] Prevent a warning: assigned but unused variable - raised_exception --- test/test_timeout.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_timeout.rb b/test/test_timeout.rb index b1a93a7a7e..e900b10cd7 100644 --- a/test/test_timeout.rb +++ b/test/test_timeout.rb @@ -108,7 +108,7 @@ class TestTimeout < Test::Unit::TestCase raised_exception = e end - assert_equal 'inner message', e.message + assert_equal 'inner message', raised_exception.message end def test_cannot_convert_into_time_interval