fix test failure

This commit is contained in:
wang--ge 2023-08-12 16:11:58 +08:00
parent 44480e6e42
commit a1ec0cbfaf

View File

@ -1,7 +1,7 @@
%global gem_name redis
Name: rubygem-%{gem_name}
Version: 4.7.0
Release: 2
Release: 3
Summary: A Ruby client library for Redis
License: MIT
URL: https://github.com/redis/redis-rb
@ -45,6 +45,13 @@ sed -i \
-e '/def test_large_payload/,/end/ {/end/ s/end/&\n end/;}' \
test/internals_test.rb
sed -i \
-e '/def test_redirection_when_slot_is_resharding/i\ driver(:ruby) do' \
-e '/def test_redirection_when_slot_is_resharding/,/end/ {/end/ s/end/&\n end/;}' \
test/cluster_client_slots_test.rb
sed -i 's/redis:\/\/\//redis:\/\/127.0.0.1/g' test/url_param_test.rb
mkdir bin
echo '#!/usr/bin/sh' > bin/build
chmod a+x bin/build
@ -74,6 +81,9 @@ popd
%doc %{gem_instdir}/README.md
%changelog
* Sat Aug 12 2023 Ge Wang <wang__ge@126.com> - 4.7.0-3
- Fix test_redirection_when_slot_is_resharding test failure
* Thu Jan 12 2023 xu_ping <xuping33@h-partners.com> - 4.7.0-2
- The TestInternals#test_large_payload fails with hiredis.