From a46f9db16e00c51c8e274715b44457e024fc0d8b Mon Sep 17 00:00:00 2001 From: Taishi Kasuga Date: Mon, 9 Sep 2024 12:43:09 +0900 Subject: [PATCH] Fix several test cases for the stuck in TruffleRuby --- .github/workflows/test.yaml | 1 + test/redis/ssl_test.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 50f8beac5..16bd80a99 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -57,6 +57,7 @@ jobs: run: make start - name: Test run: bundle exec rake test:redis test:distributed + timeout-minutes: 3 - name: Shutting down Redis run: make stop diff --git a/test/redis/ssl_test.rb b/test/redis/ssl_test.rb index 075297320..d9fd452ff 100644 --- a/test/redis/ssl_test.rb +++ b/test/redis/ssl_test.rb @@ -16,6 +16,7 @@ def test_verified_ssl_connection RedisMock.start({ ping: proc { "+PONG" } }, ssl_server_opts("trusted")) do |port| redis = Redis.new(host: "127.0.0.1", port: port, ssl: true, ssl_params: { ca_file: ssl_ca_file }) assert_equal redis.ping, "PONG" + redis.close end end @@ -41,6 +42,7 @@ def test_ssl_blocking RedisMock.start({}, ssl_server_opts("trusted")) do |port| redis = Redis.new(host: "127.0.0.1", port: port, ssl: true, ssl_params: { ca_file: ssl_ca_file }) assert_equal redis.set("boom", "a" * 10_000_000), "OK" + redis.close end end